commit 876be0435307bf0904977c08fc9b8796ec28ae49
parent a25f48dafcd54d7e901c2e303b62ab618a6708c6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 1 Apr 2021 20:07:23 +0300
digestauth: fixed compiler warning
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -684,7 +684,6 @@ 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 timestamphex[TIMESTAMP_BIN_SIZE * 2 + 1];
VLA_CHECK_LEN_DIGEST (digest_size);
da->init (da->ctx);
@@ -727,10 +726,7 @@ calculate_nonce (uint32_t nonce_time,
nonce);
cvthex (timestamp,
sizeof (timestamp),
- timestamphex);
- strncat (nonce,
- timestamphex,
- 8);
+ nonce + digest_size * 2);
}