[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 18/22: digestauth: changed "slot used" detection logic
From: |
gnunet |
Subject: |
[libmicrohttpd] 18/22: digestauth: changed "slot used" detection logic |
Date: |
Sun, 25 Sep 2022 17:43:53 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit f26b806199a9ec0eb72fa217f855c9a4cff78983
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Sep 16 10:35:37 2022 +0300
digestauth: changed "slot used" detection logic
---
src/microhttpd/digestauth.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 83ecbf5e..eb9f34d7 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -1465,12 +1465,10 @@ is_slot_available (const struct MHD_NonceNc *const nn,
if (0 == nn->nonce[0])
return true; /* The slot is empty */
- if ((0 == memcmp (nn->nonce, new_nonce, new_nonce_len)) &&
- (0 == nn->nonce[new_nonce_len]))
+ if (0 == memcmp (nn->nonce, new_nonce, new_nonce_len))
{
- /* The slot has the same nonce already, the same nonce was already
generated
- * and used, this slot cannot be used with the same nonce as it would
- * just reset received 'nc' values. */
+ /* The slot has the same nonce already. This nonce cannot be registered
+ * again as it would just clear 'nc' usage history. */
return false;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 12/22: test_sha{256,512_256}: minor fixes, (continued)
- [libmicrohttpd] 12/22: test_sha{256,512_256}: minor fixes, gnunet, 2022/09/25
- [libmicrohttpd] 08/22: md5: replaced public domain MD5 implementation with our own implementation, gnunet, 2022/09/25
- [libmicrohttpd] 20/22: digestauth: refactored hashing asserts, gnunet, 2022/09/25
- [libmicrohttpd] 15/22: sha{256, 512_256}: improved performance of the first steps on BE arches, gnunet, 2022/09/25
- [libmicrohttpd] 22/22: w32: sync projects with autotools, gnunet, 2022/09/25
- [libmicrohttpd] 11/22: test_{md5,sha256,sha512_256}: added more checks, gnunet, 2022/09/25
- [libmicrohttpd] 16/22: test_{md5,sha{256,512_256}}: re-use of the context structure, gnunet, 2022/09/25
- [libmicrohttpd] 19/22: digestauth: used weak pseudo-random generators to avoid nonces clashes, gnunet, 2022/09/25
- [libmicrohttpd] 21/22: Implemented support for hash calculation by GnuTLS lib functions, gnunet, 2022/09/25
- [libmicrohttpd] 13/22: test_md5: added more test sequences, gnunet, 2022/09/25
- [libmicrohttpd] 18/22: digestauth: changed "slot used" detection logic,
gnunet <=