Dillo v3.1.1-119-g140d9ebd
|
Go to the source code of this file.
Functions | |
char * | a_Digest_create_cnonce (void) |
Returns a pointer to a newly allocated string containing a cnonce. | |
int | a_Digest_compute_digest (AuthRealm_t *realm, const char *username, const char *passwd) |
This portion only has to be calculated once. | |
char * | a_Digest_authorization_hdr (AuthRealm_t *realm, const DilloUrl *url, const char *uri) |
Construct Digest Authorization header. | |
char * a_Digest_authorization_hdr | ( | AuthRealm_t * | realm, |
const DilloUrl * | url, | ||
const char * | digest_uri | ||
) |
Construct Digest Authorization header.
Field ordering: furaisanjin reports that his DVD recorder requires the order that IE happens to use: "username, realm, nonce, uri, cnonce, nc, algorithm, response, qop". It apparently doesn't use "opaque", so that's been left where it already was.
Definition at line 169 of file digest.c.
References AuthRealm_t::algorithm, ALGORITHM2STR, ALGORITHMNOTSET, AuthRealm_t::cnonce, Digest_create_response(), Digest_Dstr_append_token_value(), dStr_free(), dStr_new(), dStr_sprintfa(), AuthRealm_t::name, AuthRealm_t::nonce, AuthRealm_t::nonce_count, AuthRealm_t::opaque, AuthRealm_t::qop, QOP2STR, QOPNOTSET, Dstr::str, URL_DATA, URL_FLAGS, URL_Post, and AuthRealm_t::username.
Referenced by a_Auth_get_auth_str().
int a_Digest_compute_digest | ( | AuthRealm_t * | realm, |
const char * | username, | ||
const char * | passwd | ||
) |
This portion only has to be calculated once.
Definition at line 54 of file digest.c.
References AuthRealm_t::algorithm, ALGORITHMNOTSET, AuthRealm_t::authorization, AuthRealm_t::cnonce, dStr_free(), dStr_new(), dStr_shred(), dStr_sprintf(), MD5, md5hexdigest(), MD5SESS, MSG, AuthRealm_t::name, AuthRealm_t::nonce, and Dstr::str.
Referenced by Auth_do_auth_dialog_cb().
char * a_Digest_create_cnonce | ( | void | ) |
Returns a pointer to a newly allocated string containing a cnonce.
Definition at line 41 of file digest.c.
References dNew, and hexchars.
Referenced by Auth_do_auth_dialog_cb().