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


Go to the source code of this file.
Data Structures | |
| struct | authenticate_body |
Defines | |
| #define | AUTHENTICATE_MD5 (1<<0) |
| #define | AUTHENTICATE_MD5SESS (1<<1) |
| #define | AUTHENTICATE_STALE (1<<2) |
| #define | QOP_AUTH (1<<3) |
| #define | QOP_AUTH_INT (1<<4) |
Functions | |
| str * | build_authorization_hdr (int code, str *uri, struct uac_credential *crd, struct authenticate_body *auth, char *response) |
| int | parse_authenticate_body (str *body, struct authenticate_body *auth) |
| #define AUTHENTICATE_MD5 (1<<0) |
Definition at line 47 of file auth_hdr.h.
| #define AUTHENTICATE_MD5SESS (1<<1) |
Definition at line 48 of file auth_hdr.h.
| #define AUTHENTICATE_STALE (1<<2) |
Definition at line 49 of file auth_hdr.h.
| #define QOP_AUTH (1<<3) |
Definition at line 50 of file auth_hdr.h.
Referenced by build_authorization_hdr(), check_dig_cred(), do_uac_auth(), parse_authenticate_body(), parse_qop(), print_cred(), and radius_authorize_sterman().
| #define QOP_AUTH_INT (1<<4) |
Definition at line 51 of file auth_hdr.h.
Referenced by build_authorization_hdr(), do_uac_auth(), and uac_calc_HA2().
| str* build_authorization_hdr | ( | int | code, | |
| str * | uri, | |||
| struct uac_credential * | crd, | |||
| struct authenticate_body * | auth, | |||
| char * | response | |||
| ) |
Definition at line 313 of file auth_hdr.c.
References add_string, ALGORITHM_FIELD_LEN, ALGORITHM_FIELD_S, AUTHORIZATION_HDR_START, AUTHORIZATION_HDR_START_LEN, authenticate_body::cnonce, CNONCE_FIELD_LEN, CNONCE_FIELD_S, CRLF, CRLF_LEN, FIELD_SEPARATOR_LEN, FIELD_SEPARATOR_S, FIELD_SEPARATOR_UQ_LEN, FIELD_SEPARATOR_UQ_S, authenticate_body::flags, _str::len, len, LM_CRIT, LM_DBG, LM_ERR, authenticate_body::nc, NC_FIELD_LEN, NC_FIELD_S, authenticate_body::nonce, NONCE_FIELD_LEN, NONCE_FIELD_S, authenticate_body::opaque, OPAQUE_FIELD_LEN, OPAQUE_FIELD_S, pkg_free, pkg_malloc, PROXY_AUTHORIZATION_HDR_START, PROXY_AUTHORIZATION_HDR_START_LEN, QOP_AUTH, QOP_AUTH_INT, QOP_FIELD_LEN, QOP_FIELD_S, uac_credential::realm, REALM_FIELD_LEN, REALM_FIELD_S, RESPONSE_FIELD_LEN, RESPONSE_FIELD_S, _str::s, URI_FIELD_LEN, URI_FIELD_S, uac_credential::user, USERNAME_FIELD_LEN, and USERNAME_FIELD_S.
Referenced by uac_auth().
| int parse_authenticate_body | ( | str * | body, | |
| struct authenticate_body * | auth | |||
| ) |
Definition at line 91 of file auth_hdr.c.
References ALGORITHM_STATE, AUTHENTICATE_DIGEST_LEN, AUTHENTICATE_DIGEST_S, AUTHENTICATE_MD5, AUTHENTICATE_STALE, CASE_5B, CASE_6B, authenticate_body::domain, DOMAIN_STATE, authenticate_body::flags, GET3B, GET4B, _str::len, LM_DBG, LM_ERR, LOWER1B, LOWER4B, authenticate_body::nonce, NONCE_STATE, authenticate_body::opaque, OPAQUE_STATE, OTHER_STATE, authenticate_body::qop, QOP_AUTH, QOP_STATE, authenticate_body::realm, REALM_STATE, _str::s, and STALE_STATE.
Referenced by uac_auth().
1.5.6