Dillo v3.1.1-99-gf3103cc4
|
#include "url.h"
Go to the source code of this file.
Classes | |
struct | AuthRealm_t |
Enumerations | |
enum | AuthParseHTTPAuthType_t { TYPENOTSET , BASIC , DIGEST } |
enum | AuthParseDigestAlgorithm_t { ALGORITHMNOTSET , MD5 , MD5SESS } |
enum | AuthParseDigestQOP_t { QOPNOTSET , AUTH , AUTHINT } |
Functions | |
char * | a_Auth_get_auth_str (const DilloUrl *url, const char *request_uri) |
Return the authorization header for an HTTP query. | |
int | a_Auth_do_auth (Dlist *auth_string, const DilloUrl *url) |
Given authentication challenge(s), prepare authorization. | |
void | a_Auth_init (void) |
Initialize the auth module. | |
enum AuthParseDigestQOP_t |
Given authentication challenge(s), prepare authorization.
Return: 0 on failure nonzero on success. A new query will be sent to the server.
Definition at line 671 of file auth.c.
References Auth_do_auth(), BASIC, DIGEST, dList_nth_data(), and dStrnAsciiCasecmp().
Referenced by Cache_auth_callback().
char * a_Auth_get_auth_str | ( | const DilloUrl * | url, |
const char * | request_uri | ||
) |
Return the authorization header for an HTTP query.
request_uri is a separate argument because we want it precisely as formatted in the request.
Definition at line 472 of file auth.c.
References a_Digest_authorization_hdr(), Auth_host_by_url(), Auth_realm_by_path(), AuthRealm_t::authorization, BASIC, DIGEST, dStrdup(), MSG, AuthRealm_t::type, and URL_PATH.
Referenced by Http_make_query_str().
void a_Auth_init | ( | void | ) |
Initialize the auth module.
Definition at line 59 of file auth.c.
References auth_hosts, and dList_new().
Referenced by main().