digest_parser.c File Reference

#include "digest_parser.h"
#include "../../trim.h"
#include <string.h>
#include "param_parser.h"

Include dependency graph for digest_parser.c:

Go to the source code of this file.

Defines

#define ALG_MD5_STR   "MD5"
#define ALG_MD5_STR_LEN   3
#define ALG_MD5SESS_STR   "MD5-sess"
#define ALG_MD5SESS_STR_LEN   8
#define DIG_LEN   6
#define DIGEST_SCHEME   "digest"
#define QOP_AUTH_STR   "auth"
#define QOP_AUTH_STR_LEN   4
#define QOP_AUTHINT_STR   "auth-int"
#define QOP_AUTHINT_STR_LEN   8

Functions

void init_dig_cred (dig_cred_t *_c)
static void parse_algorithm (struct algorithm *_a)
int parse_digest_cred (str *_s, dig_cred_t *_c)
static int parse_digest_param (str *_s, dig_cred_t *_c)
static int parse_digest_params (str *_s, dig_cred_t *_c)
static void parse_qop (struct qp *_q)
static int parse_quoted (str *_s, str *_r)
static int parse_token (str *_s, str *_r)
static void parse_username (struct username *_u)


Define Documentation

#define ALG_MD5_STR   "MD5"

Definition at line 46 of file digest_parser.c.

Referenced by parse_algorithm().

#define ALG_MD5_STR_LEN   3

Definition at line 47 of file digest_parser.c.

Referenced by parse_algorithm().

#define ALG_MD5SESS_STR   "MD5-sess"

Definition at line 49 of file digest_parser.c.

Referenced by parse_algorithm().

#define ALG_MD5SESS_STR_LEN   8

Definition at line 50 of file digest_parser.c.

Referenced by parse_algorithm().

#define DIG_LEN   6

Definition at line 38 of file digest_parser.c.

Referenced by parse_digest_cred().

#define DIGEST_SCHEME   "digest"

Definition at line 37 of file digest_parser.c.

Referenced by parse_digest_cred().

#define QOP_AUTH_STR   "auth"

Definition at line 40 of file digest_parser.c.

Referenced by parse_qop().

#define QOP_AUTH_STR_LEN   4

Definition at line 41 of file digest_parser.c.

Referenced by parse_qop().

#define QOP_AUTHINT_STR   "auth-int"

Definition at line 43 of file digest_parser.c.

Referenced by parse_qop().

#define QOP_AUTHINT_STR_LEN   8

Definition at line 44 of file digest_parser.c.

Referenced by parse_qop().


Function Documentation

void init_dig_cred ( dig_cred_t _c  ) 

Definition at line 382 of file digest_parser.c.

Referenced by new_credentials().

static void parse_algorithm ( struct algorithm _a  )  [inline, static]

int parse_digest_cred ( str _s,
dig_cred_t _c 
)

Definition at line 335 of file digest_parser.c.

References DIG_LEN, DIGEST_SCHEME, _str::len, parse_digest_params(), _str::s, and trim_leading().

Referenced by parse_credentials().

static int parse_digest_param ( str _s,
dig_cred_t _c 
) [inline, static]

static int parse_digest_params ( str _s,
dig_cred_t _c 
) [inline, static]

static void parse_qop ( struct qp _q  )  [inline, static]

static int parse_quoted ( str _s,
str _r 
) [inline, static]

Definition at line 59 of file digest_parser.c.

References _str::len, and _str::s.

Referenced by parse_digest_param().

static int parse_token ( str _s,
str _r 
) [inline, static]

Definition at line 105 of file digest_parser.c.

References _str::len, and _str::s.

Referenced by parse_digest_param().

static void parse_username ( struct username _u  )  [inline, static]

Definition at line 265 of file digest_parser.c.

References username::domain, _str::len, _str::s, username::user, and username::whole.

Referenced by parse_digest_params().


Generated on Tue May 22 16:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6