mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
Make mg_http_check_digest_auth() public
PUBLISHED_FROM=f00b94cabc2a89d27d5bc78d68d67db0930811b4
This commit is contained in:
1 parent
5d0a5cfe72
commit
4ac688e560
21 files changed
+25
-27032
No files matched your search
+2
-6
@@ -6247,12 +6247,8 @@ static int mg_check_nonce(const char *nonce) {
|
||||
return now < val || now - val < 3600;
|
||||
}
|
||||
|
||||
/*
|
||||
* Authenticate HTTP request against opened passwords file.
|
||||
* Returns 1 if authenticated, 0 otherwise.
|
||||
*/
|
||||
static int mg_http_check_digest_auth(struct http_message *hm,
|
||||
const char *auth_domain, FILE *fp) {
|
||||
int mg_http_check_digest_auth(struct http_message *hm, const char *auth_domain,
|
||||
FILE *fp) {
|
||||
struct mg_str *hdr;
|
||||
char buf[128], f_user[sizeof(buf)], f_ha1[sizeof(buf)], f_domain[sizeof(buf)];
|
||||
char user[50], cnonce[33], response[40], uri[200], qop[20], nc[20], nonce[30];
|
||||
|
||||
Reference in new issue
Block a user