#include "digest_parser.h"#include "../hf.h"#include "../msg_parser.h"


Go to the source code of this file.
Data Structures | |
| struct | auth_body |
Typedefs | |
| typedef struct auth_body | auth_body_t |
| typedef enum dig_err | dig_err_t |
Enumerations | |
| enum | dig_err { E_DIG_OK = 0, E_DIG_USERNAME = 1, E_DIG_REALM = 2, E_DIG_NONCE = 4, E_DIG_URI = 8, E_DIG_RESPONSE = 16, E_DIG_CNONCE = 32, E_DIG_NC = 64, E_DIG_DOMAIN = 128 } |
Functions | |
| dig_err_t | check_dig_cred (dig_cred_t *_c) |
| void | free_credentials (auth_body_t **_b) |
| int | get_authorized_cred (struct hdr_field *_f, struct hdr_field **_h) |
| int | mark_authorized_cred (struct sip_msg *_m, struct hdr_field *_h) |
| int | parse_credentials (struct hdr_field *_h) |
| void | print_cred (dig_cred_t *_c) |
| typedef struct auth_body auth_body_t |
| enum dig_err |
| dig_err_t check_dig_cred | ( | dig_cred_t * | _c | ) |
Definition at line 108 of file digest.c.
References dig_cred::cnonce, username::domain, E_DIG_CNONCE, E_DIG_DOMAIN, E_DIG_NC, E_DIG_NONCE, E_DIG_OK, E_DIG_REALM, E_DIG_RESPONSE, E_DIG_URI, E_DIG_USERNAME, _str::len, dig_cred::nc, dig_cred::nonce, dig_cred::qop, QOP_AUTH, QOP_AUTHINT, qp::qop_parsed, dig_cred::realm, dig_cred::response, _str::s, dig_cred::uri, username::user, and dig_cred::username.
Referenced by pre_auth().
| void free_credentials | ( | auth_body_t ** | _b | ) |
Definition at line 93 of file digest.c.
References pkg_free.
Referenced by clean_hdr_field(), and parse_credentials().
Definition at line 226 of file digest.c.
References hdr_field::parsed.
Referenced by challenge(), check_username(), clone_authorized_hooks(), consume_credentials(), diameter_is_user_in(), get_username_domain(), and is_user().
Definition at line 197 of file digest.c.
References sip_msg::authorization, HDR_AUTHORIZATION_T, HDR_PROXYAUTH_T, LM_ERR, new_credentials(), hdr_field::parsed, sip_msg::proxy_auth, and hdr_field::type.
Referenced by authorize(), and pre_auth().
| int parse_credentials | ( | struct hdr_field * | _h | ) |
Definition at line 63 of file digest.c.
References hdr_field::body, free_credentials(), LM_ERR, new_credentials(), parse_digest_cred(), and hdr_field::parsed.
Referenced by ds_hash_authusername(), encode_header(), and find_credentials().
| void print_cred | ( | dig_cred_t * | _c | ) |
Definition at line 152 of file digest.c.
References dig_cred::alg, ALG_MD5, ALG_MD5SESS, ALG_OTHER, algorithm::alg_parsed, algorithm::alg_str, ALG_UNSPEC, dig_cred::cnonce, username::domain, _str::len, dig_cred::nc, dig_cred::nonce, dig_cred::opaque, dig_cred::qop, QOP_AUTH, QOP_AUTHINT, QOP_OTHER, qp::qop_parsed, qp::qop_str, QOP_UNSPEC, dig_cred::realm, dig_cred::response, _str::s, dig_cred::uri, username::user, dig_cred::username, and username::whole.
1.5.6