#include "digest.h"#include "../../mem/mem.h"#include "../../dprint.h"#include <stdio.h>#include <string.h>

Go to the source code of this file.
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) |
| static int | new_credentials (struct hdr_field *_h) |
| int | parse_credentials (struct hdr_field *_h) |
| void | print_cred (dig_cred_t *_c) |
| 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().
| static int new_credentials | ( | struct hdr_field * | _h | ) | [inline, static] |
Definition at line 36 of file digest.c.
References auth_body::authorized, auth_body::digest, init_dig_cred(), LM_ERR, hdr_field::parsed, pkg_malloc, and auth_body::stale.
Referenced by mark_authorized_cred(), and parse_credentials().
| 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