diff options
Diffstat (limited to 'src/microhttpd/digestauth.c')
-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 de2bfc58..0bd1a8c6 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -729,7 +729,7 @@ calculate_nonce (uint32_t nonce_time, | |||
729 | { | 729 | { |
730 | unsigned char timestamp[TIMESTAMP_BIN_SIZE]; | 730 | unsigned char timestamp[TIMESTAMP_BIN_SIZE]; |
731 | const unsigned int digest_size = da->digest_size; | 731 | const unsigned int digest_size = da->digest_size; |
732 | unsigned char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; | 732 | char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; |
733 | 733 | ||
734 | VLA_CHECK_LEN_DIGEST (digest_size); | 734 | VLA_CHECK_LEN_DIGEST (digest_size); |
735 | da->init (da->ctx); | 735 | da->init (da->ctx); |
@@ -766,7 +766,7 @@ calculate_nonce (uint32_t nonce_time, | |||
766 | (const unsigned char *) realm, | 766 | (const unsigned char *) realm, |
767 | strlen (realm)); | 767 | strlen (realm)); |
768 | da->digest (da->ctx, | 768 | da->digest (da->ctx, |
769 | tmpnonce); | 769 | (uint8_t *) tmpnonce); |
770 | MHD_bin_to_hex (tmpnonce, | 770 | MHD_bin_to_hex (tmpnonce, |
771 | digest_size, | 771 | digest_size, |
772 | nonce); | 772 | nonce); |