diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-21 20:47:29 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-25 16:20:49 +0300 |
commit | 5866b68fa7440cbbe39d1e06c310b3be8debf85e (patch) | |
tree | ab299a36d9202b4ab7c83c96a8c0202009371e8b | |
parent | 961635da2a9d7363528940f4fa7a0148e96e90d8 (diff) | |
download | libmicrohttpd-5866b68fa7440cbbe39d1e06c310b3be8debf85e.tar.gz libmicrohttpd-5866b68fa7440cbbe39d1e06c310b3be8debf85e.zip |
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.
-rw-r--r-- | src/include/microhttpd.h | 11 | ||||
-rw-r--r-- | 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" | |||
96 | * they are parsed as decimal numbers. | 96 | * they are parsed as decimal numbers. |
97 | * Example: 0x01093001 = 1.9.30-1. | 97 | * Example: 0x01093001 = 1.9.30-1. |
98 | */ | 98 | */ |
99 | #define MHD_VERSION 0x00097521 | 99 | #define MHD_VERSION 0x00097522 |
100 | 100 | ||
101 | /* If generic headers don't work on your platform, include headers | 101 | /* If generic headers don't work on your platform, include headers |
102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', | 102 | 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); | |||
4701 | /** | 4701 | /** |
4702 | * Get the username from the authorization header sent by the client | 4702 | * Get the username from the authorization header sent by the client |
4703 | * | 4703 | * |
4704 | * This function supports username in standard and extended notations. | ||
4705 | * "userhash" is not supported by this function. | ||
4706 | * | ||
4704 | * @param connection The MHD connection structure | 4707 | * @param connection The MHD connection structure |
4705 | * @return NULL if no username could be found, a pointer | 4708 | * @return NULL if no username could be found, username provided as |
4706 | * to the username if found, free using #MHD_free(). | 4709 | * "userhash" or memory allocation error occurred; |
4710 | * a pointer to the username if found, free using #MHD_free(). | ||
4711 | * @warning Returned value must be freed by #MHD_free(). | ||
4707 | * @deprecated use MHD_digest_auth_get_username3() | 4712 | * @deprecated use MHD_digest_auth_get_username3() |
4708 | * @ingroup authentication | 4713 | * @ingroup authentication |
4709 | */ | 4714 | */ |
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) | |||
1189 | /** | 1189 | /** |
1190 | * Get the username from the authorization header sent by the client | 1190 | * Get the username from the authorization header sent by the client |
1191 | * | 1191 | * |
1192 | * This function support username in standard and extended notations. | ||
1193 | * "userhash" is not supported by this function. | ||
1194 | * | ||
1192 | * @param connection The MHD connection structure | 1195 | * @param connection The MHD connection structure |
1193 | * @return NULL if no username could be found, a pointer | 1196 | * @return NULL if no username could be found, username provided as |
1194 | * to the username if found | 1197 | * "userhash" or memory allocation error occurs; |
1198 | * a pointer to the username if found, free using #MHD_free(). | ||
1195 | * @warning Returned value must be freed by #MHD_free(). | 1199 | * @warning Returned value must be freed by #MHD_free(). |
1200 | * @deprecated use MHD_digest_auth_get_username3() | ||
1196 | * @ingroup authentication | 1201 | * @ingroup authentication |
1197 | */ | 1202 | */ |
1198 | _MHD_EXTERN char * | 1203 | _MHD_EXTERN char * |