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


Go to the source code of this file.
Defines | |
| #define | HASHHEXLEN 32 |
| #define | HASHLEN 16 |
Typedefs | |
| typedef char | HASH [HASHLEN] |
| typedef char | HASHHEX [HASHHEXLEN+1] |
Functions | |
| void | uac_calc_HA1 (struct uac_credential *crd, struct authenticate_body *auth, str *cnonce, HASHHEX sess_key) |
| void | uac_calc_HA2 (str *method, str *uri, struct authenticate_body *auth, HASHHEX hentity, HASHHEX HA2Hex) |
| void | uac_calc_response (HASHHEX ha1, HASHHEX ha2, struct authenticate_body *auth, str *nc, str *cnonce, HASHHEX response) |
| #define HASHHEXLEN 32 |
Definition at line 42 of file auth_alg.h.
| #define HASHLEN 16 |
Definition at line 38 of file auth_alg.h.
| typedef char HASH[HASHLEN] |
Definition at line 39 of file auth_alg.h.
| typedef char HASHHEX[HASHHEXLEN+1] |
Definition at line 43 of file auth_alg.h.
| void uac_calc_HA1 | ( | struct uac_credential * | crd, | |
| struct authenticate_body * | auth, | |||
| str * | cnonce, | |||
| HASHHEX | sess_key | |||
| ) |
Definition at line 66 of file auth_alg.c.
References AUTHENTICATE_MD5SESS, cvt_hex(), authenticate_body::flags, HASH, HASHLEN, _str::len, MD5Final(), MD5Init(), MD5Update(), authenticate_body::nonce, uac_credential::passwd, uac_credential::realm, _str::s, and uac_credential::user.
Referenced by do_uac_auth().
| void uac_calc_HA2 | ( | str * | method, | |
| str * | uri, | |||
| struct authenticate_body * | auth, | |||
| HASHHEX | hentity, | |||
| HASHHEX | HA2Hex | |||
| ) |
Definition at line 101 of file auth_alg.c.
References cvt_hex(), authenticate_body::flags, HASH, HASHHEXLEN, _str::len, MD5Final(), MD5Init(), MD5Update(), QOP_AUTH_INT, and _str::s.
Referenced by do_uac_auth().
| void uac_calc_response | ( | HASHHEX | ha1, | |
| HASHHEX | ha2, | |||
| struct authenticate_body * | auth, | |||
| str * | nc, | |||
| str * | cnonce, | |||
| HASHHEX | response | |||
| ) |
Definition at line 129 of file auth_alg.c.
References cvt_hex(), HASH, HASHHEXLEN, _str::len, MD5Final(), MD5Init(), MD5Update(), authenticate_body::nonce, authenticate_body::qop, and _str::s.
Referenced by do_uac_auth().
1.5.6