diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-04 13:39:59 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-04 15:47:36 +0300 |
commit | 65300939cf147f297c32edafa5997a2f6d5d0b86 (patch) | |
tree | dc3acd422f066ae0fd57d9802e202168dd4c5eae /src/microhttpd/digestauth.c | |
parent | c38e0a30f80158be8a806d91e644e143042fafde (diff) | |
download | libmicrohttpd-65300939cf147f297c32edafa5997a2f6d5d0b86.tar.gz libmicrohttpd-65300939cf147f297c32edafa5997a2f6d5d0b86.zip |
digestauth: changed type of var
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); |