diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-18 13:08:28 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-19 17:50:05 +0300 |
commit | 619e5f631eaf5904d892a0e8761fea2dcc8bdbf7 (patch) | |
tree | f7497cf10a90a1880fec6dad17d5b437a406bab4 | |
parent | 98b3c68aabae5e9a095e665f72a3bde209ed8a52 (diff) | |
download | libmicrohttpd-619e5f631eaf5904d892a0e8761fea2dcc8bdbf7.tar.gz libmicrohttpd-619e5f631eaf5904d892a0e8761fea2dcc8bdbf7.zip |
Digest: use binary zero to separate get params in digest
-rw-r--r-- | src/microhttpd/digestauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 5af1cf07..0ffde90b 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -1545,10 +1545,10 @@ calculate_nonce (uint64_t nonce_time, | |||
1545 | { | 1545 | { |
1546 | if (MHD_GET_ARGUMENT_KIND != h->kind) | 1546 | if (MHD_GET_ARGUMENT_KIND != h->kind) |
1547 | continue; | 1547 | continue; |
1548 | digest_update (da, (const uint8_t *) "##", 3); | 1548 | digest_update (da, (const uint8_t *) "\0", 2); |
1549 | if (0 != h->header_size) | 1549 | if (0 != h->header_size) |
1550 | digest_update (da, (const uint8_t *) h->header, h->header_size); | 1550 | digest_update (da, (const uint8_t *) h->header, h->header_size); |
1551 | digest_update (da, (const uint8_t *) "#", 2); | 1551 | digest_update (da, (const uint8_t *) "", 1); |
1552 | if (0 != h->value_size) | 1552 | if (0 != h->value_size) |
1553 | digest_update (da, (const uint8_t *) h->value, h->value_size); | 1553 | digest_update (da, (const uint8_t *) h->value, h->value_size); |
1554 | } | 1554 | } |