[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/10: digestauth: fixed compiler warning
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/10: digestauth: fixed compiler warning |
Date: |
Thu, 01 Apr 2021 20:38:58 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 876be0435307bf0904977c08fc9b8796ec28ae49
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Apr 1 20:07:23 2021 +0300
digestauth: fixed compiler warning
---
src/microhttpd/digestauth.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 3b6d94f7..6033c166 100644
--- 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);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (bf25ee3a -> e3d7574a), gnunet, 2021/04/01
- [libmicrohttpd] 01/10: digestauth: do not use size of buffer as size of digest, gnunet, 2021/04/01
- [libmicrohttpd] 02/10: digestauth: fixed compiler warning,
gnunet <=
- [libmicrohttpd] 03/10: connection.c: mute compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 06/10: testzzuf: test thoroughly if heavy tests are enabled, gnunet, 2021/04/01
- [libmicrohttpd] 04/10: test_get_iovec: fixed compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 05/10: test_add_conn: muted compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 09/10: digestauth.c: trust configure detection of variable length arrays, gnunet, 2021/04/01
- [libmicrohttpd] 10/10: ax_have_epoll: speed-up detection, gnunet, 2021/04/01
- [libmicrohttpd] 07/10: configure: assume that systems assert() is functional if available, gnunet, 2021/04/01
- [libmicrohttpd] 08/10: websocket_threaded_example: muted compiler warning, gnunet, 2021/04/01