[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 18/19: MHD_FEATURE_*: added some values related to Diges
From: |
gnunet |
Subject: |
[libmicrohttpd] 18/19: MHD_FEATURE_*: added some values related to Digest Auth |
Date: |
Thu, 28 Jul 2022 06:26:22 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a64c96c497064092cdf8bbc66e60bac7e3f3ffac
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jul 25 19:46:09 2022 +0300
MHD_FEATURE_*: added some values related to Digest Auth
---
src/include/microhttpd.h | 55 +++++++++++++++++++++++++++++++++++++++++++++---
src/microhttpd/daemon.c | 38 +++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+), 3 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index aceed304..c0e911c5 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -96,7 +96,7 @@ extern "C"
* they are parsed as decimal numbers.
* Example: 0x01093001 = 1.9.30-1.
*/
-#define MHD_VERSION 0x00097526
+#define MHD_VERSION 0x00097527
/* If generic headers don't work on your platform, include headers
which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t',
@@ -5708,8 +5708,57 @@ enum MHD_FEATURE
* MHD versions before 0x00097514 always support cookie parsing.
* @note Available since #MHD_VERSION 0x00097514
*/
- MHD_FEATURE_HTTPS_COOKIE_PARSING = 24
-} _MHD_FIXED_ENUM;
+ MHD_FEATURE_HTTPS_COOKIE_PARSING = 24,
+
+ /**
+ * Get whether the early version the Digest Authorization (RFC 2069) is
+ * supported.
+ * Currently it is always not supported if Digest Auth module is built.
+ * @note Available since #MHD_VERSION 0x00097527
+ */
+ MHD_FEATURE_DIGEST_AUTH_RFC2069 = 25,
+
+ /**
+ * Get whether the MD5-based hashing algorithms are supported for Digest
+ * Authorization.
+ * Currently it is always not supported if Digest Auth module is built.
+ * @note Available since #MHD_VERSION 0x00097527
+ */
+ MHD_FEATURE_DIGEST_AUTH_MD5 = 26,
+
+ /**
+ * Get whether the SHA-256-based hashing algorithms are supported for Digest
+ * Authorization.
+ * It it always supported since #MHD_VERSION 0x00096200 if Digest Auth
+ * module is built.
+ * @note Available since #MHD_VERSION 0x00097527
+ */
+ MHD_FEATURE_DIGEST_AUTH_SHA256 = 27,
+
+ /**
+ * 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.
+ * @note Available since #MHD_VERSION 0x00097527
+ */
+ MHD_FEATURE_DIGEST_AUTH_AUTH_INT = 28,
+
+ /**
+ * Get whether 'session' algorithms (like 'MD5-sess') are supported for
Digest
+ * Authorization.
+ * Currently it is always not supported.
+ * @note Available since #MHD_VERSION 0x00097527
+ */
+ MHD_FEATURE_DIGEST_AUTH_ALGO_SESSION = 29,
+
+ /**
+ * Get whether 'userhash' is supported for Digest Authorization.
+ * It it always supported since #MHD_VERSION 0x00097526 if Digest Auth
+ * module is built.
+ * @note Available since #MHD_VERSION 0x00097527
+ */
+ MHD_FEATURE_DIGEST_AUTH_USERHASH = 30
+};
/**
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 251e563e..2f868bfb 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -8379,7 +8379,45 @@ MHD_is_feature_supported (enum MHD_FEATURE feature)
#else
return MHD_NO;
#endif
+ case MHD_FEATURE_DIGEST_AUTH_RFC2069:
+#ifdef DAUTH_SUPPORT
+ return MHD_NO;
+#else
+ return MHD_NO;
+#endif
+ case MHD_FEATURE_DIGEST_AUTH_MD5:
+#ifdef DAUTH_SUPPORT
+ return MHD_YES;
+#else
+ return MHD_NO;
+#endif
+ case MHD_FEATURE_DIGEST_AUTH_SHA256:
+#ifdef DAUTH_SUPPORT
+ return MHD_YES;
+#else
+ return MHD_NO;
+#endif
+ case MHD_FEATURE_DIGEST_AUTH_AUTH_INT:
+#ifdef DAUTH_SUPPORT
+ return MHD_NO;
+#else
+ return MHD_NO;
+#endif
+ case MHD_FEATURE_DIGEST_AUTH_ALGO_SESSION:
+#ifdef DAUTH_SUPPORT
+ return MHD_NO;
+#else
+ return MHD_NO;
+#endif
+ case MHD_FEATURE_DIGEST_AUTH_USERHASH:
+#ifdef DAUTH_SUPPORT
+ return MHD_YES;
+#else
+ return MHD_NO;
+#endif
+ default:
+ break;
}
return MHD_NO;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 11/19: tests_digestauth*: added workarounds for libcurl bug, (continued)
- [libmicrohttpd] 11/19: tests_digestauth*: added workarounds for libcurl bug, gnunet, 2022/07/28
- [libmicrohttpd] 01/19: digestauth: fixed copy-paste error in request algo parsing, gnunet, 2022/07/28
- [libmicrohttpd] 08/19: digestauth: term correction in comment, gnunet, 2022/07/28
- [libmicrohttpd] 05/19: digest_auth_check(): added support for userhash, gnunet, 2022/07/28
- [libmicrohttpd] 09/19: test_digestauth{,_sha256,_with_aguments}: moved back to Digest Auth APIv2, gnunet, 2022/07/28
- [libmicrohttpd] 14/19: MHD_add_response_entry(): refactoring + added internal function, gnunet, 2022/07/28
- [libmicrohttpd] 12/19: test_digestauth_concurrent: fixed compiler warnings, gnunet, 2022/07/28
- [libmicrohttpd] 17/19: test_digestauth2: added new group of tests for Digest Auth checking, gnunet, 2022/07/28
- [libmicrohttpd] 16/19: Added MHD_queue_auth_required_response3(); Refactored public Digest Auth API v3, gnunet, 2022/07/28
- [libmicrohttpd] 13/19: Updated Digest Auth enums in the header, gnunet, 2022/07/28
- [libmicrohttpd] 18/19: MHD_FEATURE_*: added some values related to Digest Auth,
gnunet <=
- [libmicrohttpd] 15/19: Digest Auth public structs: removed redundant member, gnunet, 2022/07/28
- [libmicrohttpd] 19/19: Makefile: cosmetics, gnunet, 2022/07/28