gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 01/19: digestauth: fixed copy-paste error in request alg


From: gnunet
Subject: [libmicrohttpd] 01/19: digestauth: fixed copy-paste error in request algo parsing
Date: Thu, 28 Jul 2022 06:26:05 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 7ace1e11a3c9e2e5dbfee6824b9cd85a73ab6009
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jul 25 12:29:11 2022 +0300

    digestauth: fixed copy-paste error in request algo parsing
---
 src/microhttpd/digestauth.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index fe80bf0d..4bb67f11 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -743,26 +743,26 @@ get_rq_algo (const struct MHD_RqDAuth *params)
   if (MHD_str_equal_caseless_s_bin_n_ (_MHD_SHA256_TOKEN, \
                                        algo_param->value.str, \
                                        algo_param->value.len))
-    return MHD_DIGEST_AUTH_ALGO3_MD5;
+    return MHD_DIGEST_AUTH_ALGO3_SHA256;
   if (MHD_str_equal_caseless_s_bin_n_ (_MHD_MD5_TOKEN _MHD_SESS_TOKEN, \
                                        algo_param->value.str, \
                                        algo_param->value.len))
-    return MHD_DIGEST_AUTH_ALGO3_MD5;
+    return MHD_DIGEST_AUTH_ALGO3_MD5_SESSION;
   if (MHD_str_equal_caseless_s_bin_n_ (_MHD_SHA256_TOKEN _MHD_SESS_TOKEN, \
                                        algo_param->value.str, \
                                        algo_param->value.len))
-    return MHD_DIGEST_AUTH_ALGO3_MD5;
+    return MHD_DIGEST_AUTH_ALGO3_SHA256_SESSION;
 
   /* Algorithms below are not supported by MHD for authentication */
 
   if (MHD_str_equal_caseless_s_bin_n_ (_MHD_SHA512_256_TOKEN, \
                                        algo_param->value.str, \
                                        algo_param->value.len))
-    return MHD_DIGEST_AUTH_ALGO3_MD5;
+    return MHD_DIGEST_AUTH_ALGO3_SHA512_256;
   if (MHD_str_equal_caseless_s_bin_n_ (_MHD_SHA512_256_TOKEN _MHD_SESS_TOKEN, \
                                        algo_param->value.str, \
                                        algo_param->value.len))
-    return MHD_DIGEST_AUTH_ALGO3_MD5;
+    return MHD_DIGEST_AUTH_ALGO3_SHA512_256_SESSION;
 
   /* No known algorithm has been detected */
   return MHD_DIGEST_AUTH_ALGO3_INVALID;

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