libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 65300939cf147f297c32edafa5997a2f6d5d0b86
parent c38e0a30f80158be8a806d91e644e143042fafde
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed,  4 May 2022 13:39:59 +0300

digestauth: changed type of var

Diffstat:
Msrc/microhttpd/digestauth.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -729,7 +729,7 @@ calculate_nonce (uint32_t nonce_time, { unsigned char timestamp[TIMESTAMP_BIN_SIZE]; const unsigned int digest_size = da->digest_size; - unsigned char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; + char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; VLA_CHECK_LEN_DIGEST (digest_size); da->init (da->ctx); @@ -766,7 +766,7 @@ calculate_nonce (uint32_t nonce_time, (const unsigned char *) realm, strlen (realm)); da->digest (da->ctx, - tmpnonce); + (uint8_t *) tmpnonce); MHD_bin_to_hex (tmpnonce, digest_size, nonce);