digest_parser.h File Reference

#include "../../str.h"

Include dependency graph for digest_parser.h:

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

Go to the source code of this file.

Data Structures

struct  algorithm
struct  dig_cred
struct  qp
struct  username

Defines

#define GET_REALM(cred)

Typedefs

typedef enum alg alg_t
typedef struct dig_cred dig_cred_t
typedef enum qop_type qop_type_t

Enumerations

enum  alg { ALG_UNSPEC = 0, ALG_MD5 = 1, ALG_MD5SESS = 2, ALG_OTHER = 4 }
enum  qop_type { QOP_UNSPEC = 0, QOP_AUTH = 1, QOP_AUTHINT = 2, QOP_OTHER = 4 }

Functions

void init_dig_cred (dig_cred_t *_c)
int parse_digest_cred (str *_s, dig_cred_t *_c)


Define Documentation

#define GET_REALM ( cred   ) 

Value:

(((cred)->username.domain.len && (cred)->username.domain.s) ? \
     &(cred)->username.domain :                                   \
     &(cred)->realm)

Definition at line 102 of file digest_parser.h.

Referenced by check_username(), and get_username_domain().


Typedef Documentation

typedef enum alg alg_t

typedef struct dig_cred dig_cred_t

typedef enum qop_type qop_type_t


Enumeration Type Documentation

enum alg

Enumerator:
ALG_UNSPEC 
ALG_MD5 
ALG_MD5SESS 
ALG_OTHER 

Definition at line 38 of file digest_parser.h.

enum qop_type

Enumerator:
QOP_UNSPEC 
QOP_AUTH 
QOP_AUTHINT 
QOP_OTHER 

Definition at line 47 of file digest_parser.h.


Function Documentation

void init_dig_cred ( dig_cred_t _c  ) 

Definition at line 382 of file digest_parser.c.

Referenced by new_credentials().

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().


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