gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (83f50ffc -> ac05e451)


From: gnunet
Subject: [libmicrohttpd] branch master updated (83f50ffc -> ac05e451)
Date: Wed, 24 Aug 2022 07:57:10 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 83f50ffc digestauth: minor doxy correction for public API
     new 774219b7 digestauth: fixed panic log message
     new 0408d144 digestauth: removed unused static function
     new badb7c8f microhttpd: small doxy correction
     new ac05e451 gen_auth: fixed usage of 'assert()'

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/include/microhttpd.h    |  2 +-
 src/microhttpd/digestauth.c | 20 +-------------------
 src/microhttpd/gen_auth.c   |  2 +-
 3 files changed, 3 insertions(+), 21 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index b2356e5a..ac2bb921 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -5898,7 +5898,7 @@ enum MHD_FEATURE
   /**
    * Get whether QOP with value 'auth-int' (authentication with integrity
    * protection) is supported for Digest Authorization.
-   * Currently it is always not supported if Digest Auth module is built.
+   * Currently it is always not supported.
    * @note Available since #MHD_VERSION 0x00097527
    */
   MHD_FEATURE_DIGEST_AUTH_AUTH_INT = 28,
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 0f428d86..569e8991 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -302,24 +302,6 @@ struct DigestAlgorithm
 };
 
 
-/**
- * Return name of the algorithm as a string.
- * @param da the digest calculation structure to identify
- * @return the name of the @a algo as a string.
- */
-_MHD_static_inline const char *
-digest_get_algo_name (struct DigestAlgorithm *da)
-{
-  mhd_assert (da->setup);
-  if (MHD_DIGEST_BASE_ALGO_MD5 == da->algo)
-    return _MHD_MD5_TOKEN;
-  if (MHD_DIGEST_BASE_ALGO_SHA256 == da->algo)
-    return _MHD_SHA256_TOKEN;
-  mhd_assert (0); /* May not happen */
-  return "";
-}
-
-
 /**
  * Return the size of the digest.
  * @param da the digest calculation structure to identify
@@ -2748,7 +2730,7 @@ MHD_digest_auth_check_digest3 (struct MHD_Connection 
*connection,
 
   if (digest_get_hash_size ((enum MHD_DigestAuthAlgo3) malgo3) !=
       userdigest_size)
-    MHD_PANIC (_ ("Wrong 'userdigest_size' value, not matching 'malgo3, "
+    MHD_PANIC (_ ("Wrong 'userdigest_size' value, does not match 'malgo3', "
                   "API violation"));
 
   return digest_auth_check_all (connection,
diff --git a/src/microhttpd/gen_auth.c b/src/microhttpd/gen_auth.c
index 806fe482..02df8c2b 100644
--- a/src/microhttpd/gen_auth.c
+++ b/src/microhttpd/gen_auth.c
@@ -90,7 +90,7 @@ find_auth_rq_header_ (const struct MHD_Connection *c, enum 
MHD_AuthType type,
   else /* combined with the next line */
 #endif /* BAUTH_SUPPORT */
   {
-    assert (0);
+    mhd_assert (0);
     return false;
   }
 

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