challenge.h File Reference

Challenge related functions

More...

#include "../../parser/msg_parser.h"

Include dependency graph for challenge.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int consume_credentials (struct sip_msg *_m, char *_s1, char *_s2)
 Remove used credentials from a SIP message header.
int proxy_challenge (struct sip_msg *_msg, char *_realm, char *_qop)
 Challenge a user to send credentials using Proxy-Authorize header field.
int www_challenge (struct sip_msg *_msg, char *_realm, char *_qop)
 Challenge a user to send credentials using WWW-Authorize header field.


Detailed Description

Challenge related functions

Definition in file challenge.h.


Function Documentation

int consume_credentials ( struct sip_msg _m,
char *  _s1,
char *  _s2 
)

Remove used credentials from a SIP message header.

Parameters:
_m SIP message
_s1 unused
_s2 unused
Returns:
1 when credentials could be removed, -1 if not found or on failure

Definition at line 269 of file challenge.c.

References sip_msg::authorization, sip_msg::buf, del_lump(), get_authorized_cred(), hdr_field::len, len, LM_ERR, METHOD_ACK, METHOD_CANCEL, hdr_field::name, sip_msg::proxy_auth, and _str::s.

int proxy_challenge ( struct sip_msg _msg,
char *  _realm,
char *  _qop 
)

Challenge a user to send credentials using Proxy-Authorize header field.

Parameters:
_msg SIP message
_realm authentification realm
_qop qop value
Returns:
0 if challenge could be sended, -1 on failure

Definition at line 255 of file challenge.c.

References challenge(), MESSAGE_407, and PROXY_AUTH_CHALLENGE.

int www_challenge ( struct sip_msg _msg,
char *  _realm,
char *  _qop 
)

Challenge a user to send credentials using WWW-Authorize header field.

Parameters:
_msg SIP message
_realm authentification realm
_qop qop value
Returns:
0 if challenge could be sended, -1 on failure

Challenge a user to send credentials using WWW-Authorize header field

Parameters:
_msg SIP message
_realm authentification realm
_qop qop value
Returns:
0 if challenge could be sended, -1 on failure

Definition at line 234 of file challenge.c.

References challenge(), MESSAGE_401, and WWW_AUTH_CHALLENGE.


Generated on Mon May 21 16:00:35 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6