Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
digest.h File Reference
#include "auth.h"
#include "../dlib/dlib.h"
Include dependency graph for digest.h:
This graph shows which files directly or indirectly include this file:

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.
 

Function Documentation

◆ a_Digest_authorization_hdr()

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().

◆ a_Digest_compute_digest()

int a_Digest_compute_digest ( AuthRealm_t realm,
const char *  username,
const char *  passwd 
)

◆ a_Digest_create_cnonce()

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().