gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 05/14: digestauth: added sanity check for digest macros


From: gnunet
Subject: [libmicrohttpd] 05/14: digestauth: added sanity check for digest macros
Date: Thu, 21 Jul 2022 14:08:03 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 98ade6e6fee9811dbeaacba2b4b6e5c05da65334
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jul 19 20:58:10 2022 +0300

    digestauth: added sanity check for digest macros
---
 src/microhttpd/digestauth.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index d3a92740..d71af682 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -1447,6 +1447,9 @@ calculate_add_nonce (struct MHD_Connection *const 
connection,
   if (0 == daemon->nonce_nc_size)
     return false;
 
+  /* Sanity check for values */
+  mhd_assert (MAX_DIGEST_NONCE_LENGTH == NONCE_STD_LEN (MAX_DIGEST));
+
   nn = daemon->nnc + get_nonce_nc_idx (daemon->nonce_nc_size,
                                        nonce,
                                        nonce_size);

-- 
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]