gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 02/04: Added one more fallback for unique nonce generati


From: gnunet
Subject: [libmicrohttpd] 02/04: Added one more fallback for unique nonce generation
Date: Fri, 06 May 2022 21:22:12 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 82ff096dd4ceda1177bc925c3d6845998e692590
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri May 6 15:15:56 2022 +0300

    Added one more fallback for unique nonce generation
---
 src/microhttpd/digestauth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 8d907e13..a95455d3 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -992,6 +992,8 @@ calculate_add_nonce_with_retry (struct MHD_Connection 
*const connection,
       base3 = ((uint16_t) (base2 >> 16)) ^ ((uint16_t) base2);
       base4 = ((uint8_t) (base3 >> 8)) ^ ((uint8_t) base3);
       timestamp2 -= (base4 & 0x7f); /* Use up to 127 ms difference */
+      if (timestamp1 == timestamp2)
+        timestamp2 -= 2;
     }
     if (! calculate_add_nonce (connection, timestamp2, realm, da, nonce2))
     {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]