Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
auth.h File Reference
#include "url.h"
Include dependency graph for auth.h:
This graph shows which files directly or indirectly include this file:

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.
 

Enumeration Type Documentation

◆ AuthParseDigestAlgorithm_t

Enumerator
ALGORITHMNOTSET 
MD5 
MD5SESS 

Definition at line 11 of file auth.h.

◆ AuthParseDigestQOP_t

Enumerator
QOPNOTSET 
AUTH 
AUTHINT 

Definition at line 12 of file auth.h.

◆ AuthParseHTTPAuthType_t

Enumerator
TYPENOTSET 
BASIC 
DIGEST 

Definition at line 10 of file auth.h.

Function Documentation

◆ a_Auth_do_auth()

int a_Auth_do_auth ( Dlist challenges,
const DilloUrl url 
)

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

◆ a_Auth_get_auth_str()

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

◆ a_Auth_init()

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