mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Increase buffer size for cnonce
PUBLISHED_FROM=0dcb2aba0c00da6803227c775e2178230c195f5f
This commit is contained in:
1 parent
09dde636d2
commit
8f0374569e
1 file changed
+1
-1
+1
-1
@@ -5928,7 +5928,7 @@ static int mg_http_check_digest_auth(struct http_message *hm,
|
|||||||
const char *auth_domain, FILE *fp) {
|
const char *auth_domain, FILE *fp) {
|
||||||
struct mg_str *hdr;
|
struct mg_str *hdr;
|
||||||
char buf[128], f_user[sizeof(buf)], f_ha1[sizeof(buf)], f_domain[sizeof(buf)];
|
char buf[128], f_user[sizeof(buf)], f_ha1[sizeof(buf)], f_domain[sizeof(buf)];
|
||||||
char user[50], cnonce[20], response[40], uri[200], qop[20], nc[20], nonce[30];
|
char user[50], cnonce[33], response[40], uri[200], qop[20], nc[20], nonce[30];
|
||||||
char expected_response[33];
|
char expected_response[33];
|
||||||
|
|
||||||
/* Parse "Authorization:" header, fail fast on parse error */
|
/* Parse "Authorization:" header, fail fast on parse error */
|
||||||
|
|||||||
Reference in new issue
Block a user