Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
auth.h
Go to the documentation of this file.
1#ifndef __AUTH_H__
2#define __AUTH_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif /* __cplusplus */
7
8#include "url.h"
9
13
14typedef struct {
16 char *name;
17 Dlist *paths; /* stripped of any trailing '/', so the root path is "" */
18 char *authorization; /* BASIC: the authorization request header */
19 /* DIGEST: the hexdigest of A1 */
20 /* digest state ahead */
21 char *username;
22 char *cnonce;
23 unsigned int nonce_count;
24 char *nonce;
25 char *opaque;
27 char *domain; /* NOT USED */
30
31
32char *a_Auth_get_auth_str(const DilloUrl *url, const char *request_uri);
33int a_Auth_do_auth(Dlist *auth_string, const DilloUrl *url);
34void a_Auth_init(void);
35
36
37#ifdef __cplusplus
38}
39#endif /* __cplusplus */
40#endif /* !__AUTH_H__ */
AuthParseDigestQOP_t
Definition auth.h:12
@ AUTHINT
Definition auth.h:12
@ AUTH
Definition auth.h:12
@ QOPNOTSET
Definition auth.h:12
void a_Auth_init(void)
Initialize the auth module.
Definition auth.c:59
AuthParseHTTPAuthType_t
Definition auth.h:10
@ TYPENOTSET
Definition auth.h:10
@ BASIC
Definition auth.h:10
@ DIGEST
Definition auth.h:10
char * a_Auth_get_auth_str(const DilloUrl *url, const char *request_uri)
Return the authorization header for an HTTP query.
Definition auth.c:472
AuthParseDigestAlgorithm_t
Definition auth.h:11
@ MD5SESS
Definition auth.h:11
@ MD5
Definition auth.h:11
@ ALGORITHMNOTSET
Definition auth.h:11
int a_Auth_do_auth(Dlist *auth_string, const DilloUrl *url)
Given authentication challenge(s), prepare authorization.
Definition auth.c:671
unsigned int nonce_count
Definition auth.h:23
enum AuthParseHTTPAuthType_t type
Definition auth.h:15
char * domain
Definition auth.h:27
char * username
Definition auth.h:21
char * cnonce
Definition auth.h:22
enum AuthParseDigestQOP_t qop
Definition auth.h:28
char * opaque
Definition auth.h:25
Dlist * paths
Definition auth.h:17
char * nonce
Definition auth.h:24
char * name
Definition auth.h:16
char * authorization
Definition auth.h:18
enum AuthParseDigestAlgorithm_t algorithm
Definition auth.h:26
Definition url.h:88
Definition dlib.h:131
Parse and normalize all URL's inside Dillo.