diff options
Diffstat (limited to 'src/microhttpd/digestauth.h')
-rw-r--r-- | src/microhttpd/digestauth.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/microhttpd/digestauth.h b/src/microhttpd/digestauth.h index 367e8e01..af54bc63 100644 --- a/src/microhttpd/digestauth.h +++ b/src/microhttpd/digestauth.h | |||
@@ -49,12 +49,26 @@ | |||
49 | */ | 49 | */ |
50 | #define _MHD_AUTH_DIGEST_BASE "Digest" | 50 | #define _MHD_AUTH_DIGEST_BASE "Digest" |
51 | 51 | ||
52 | /** | ||
53 | * Parameter of request's Digest Authorization header | ||
54 | */ | ||
52 | struct MHD_RqDAuthParam | 55 | struct MHD_RqDAuthParam |
53 | { | 56 | { |
57 | /** | ||
58 | * The string with length, NOT zero-terminated | ||
59 | */ | ||
54 | struct _MHD_str_w_len value; | 60 | struct _MHD_str_w_len value; |
61 | /** | ||
62 | * True if string must be "unquoted" before processing. | ||
63 | * This member is false if the string is used in DQUOTE marks, but no | ||
64 | * backslash-escape is used in the string. | ||
65 | */ | ||
55 | bool quoted; | 66 | bool quoted; |
56 | }; | 67 | }; |
57 | 68 | ||
69 | /** | ||
70 | * Request client's Digest Authorization header parameters | ||
71 | */ | ||
58 | struct MHD_RqDAuth | 72 | struct MHD_RqDAuth |
59 | { | 73 | { |
60 | struct MHD_RqDAuthParam nonce; | 74 | struct MHD_RqDAuthParam nonce; |
@@ -68,6 +82,9 @@ struct MHD_RqDAuth | |||
68 | struct MHD_RqDAuthParam qop; | 82 | struct MHD_RqDAuthParam qop; |
69 | struct MHD_RqDAuthParam cnonce; | 83 | struct MHD_RqDAuthParam cnonce; |
70 | struct MHD_RqDAuthParam nc; | 84 | struct MHD_RqDAuthParam nc; |
85 | /** | ||
86 | * True if 'userhash' parameter is used with value 'true'. | ||
87 | */ | ||
71 | bool userhash; | 88 | bool userhash; |
72 | }; | 89 | }; |
73 | 90 | ||