[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 07/19: Updated doxy for old Digest Auth API function
From: |
gnunet |
Subject: |
[libmicrohttpd] 07/19: Updated doxy for old Digest Auth API function |
Date: |
Thu, 28 Jul 2022 06:26:11 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 5866b68fa7440cbbe39d1e06c310b3be8debf85e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Jul 21 20:47:29 2022 +0300
Updated doxy for old Digest Auth API function
This function supports new functionality now (extended notation) and
this functionality is automatically available without rebuilding
application.
---
src/include/microhttpd.h | 11 ++++++++---
src/microhttpd/digestauth.c | 9 +++++++--
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 670a990d..626d359e 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 0x00097521
+#define MHD_VERSION 0x00097522
/* If generic headers don't work on your platform, include headers
which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t',
@@ -4701,9 +4701,14 @@ MHD_digest_auth_get_username3 (struct MHD_Connection
*connection);
/**
* Get the username from the authorization header sent by the client
*
+ * This function supports username in standard and extended notations.
+ * "userhash" is not supported by this function.
+ *
* @param connection The MHD connection structure
- * @return NULL if no username could be found, a pointer
- * to the username if found, free using #MHD_free().
+ * @return NULL if no username could be found, username provided as
+ * "userhash" or memory allocation error occurred;
+ * a pointer to the username if found, free using #MHD_free().
+ * @warning Returned value must be freed by #MHD_free().
* @deprecated use MHD_digest_auth_get_username3()
* @ingroup authentication
*/
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 793209f9..0127a6d7 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -1189,10 +1189,15 @@ MHD_digest_auth_get_username3 (struct MHD_Connection
*connection)
/**
* Get the username from the authorization header sent by the client
*
+ * This function support username in standard and extended notations.
+ * "userhash" is not supported by this function.
+ *
* @param connection The MHD connection structure
- * @return NULL if no username could be found, a pointer
- * to the username if found
+ * @return NULL if no username could be found, username provided as
+ * "userhash" or memory allocation error occurs;
+ * a pointer to the username if found, free using #MHD_free().
* @warning Returned value must be freed by #MHD_free().
+ * @deprecated use MHD_digest_auth_get_username3()
* @ingroup authentication
*/
_MHD_EXTERN char *
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (22796735 -> 2949c070), gnunet, 2022/07/28
- [libmicrohttpd] 03/19: gen_auth: cosmetics, gnunet, 2022/07/28
- [libmicrohttpd] 04/19: digest_auth_check(): reduced scope of one-time variable, gnunet, 2022/07/28
- [libmicrohttpd] 06/19: digest_auth_check(): added check for too large realm value, gnunet, 2022/07/28
- [libmicrohttpd] 02/19: gen_auth: fixed detection of userhash in Digest Auth requests, gnunet, 2022/07/28
- [libmicrohttpd] 07/19: Updated doxy for old Digest Auth API function,
gnunet <=
- [libmicrohttpd] 10/19: test_digestauth_emu_ext: cosmetics, additional check, gnunet, 2022/07/28
- [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