2
0
Эх сурвалжийг харах

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.
Evgeny Grin (Karlson2k) 3 жил өмнө
parent
commit
5866b68fa7

+ 8 - 3
src/include/microhttpd.h

@@ -96,7 +96,7 @@ extern "C"
  * they are parsed as decimal numbers.
  * they are parsed as decimal numbers.
  * Example: 0x01093001 = 1.9.30-1.
  * 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
 /* If generic headers don't work on your platform, include headers
    which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t',
    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
  * 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
  * @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()
  * @deprecated use MHD_digest_auth_get_username3()
  * @ingroup authentication
  * @ingroup authentication
  */
  */

+ 7 - 2
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
  * 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
  * @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().
  * @warning Returned value must be freed by #MHD_free().
+ * @deprecated use MHD_digest_auth_get_username3()
  * @ingroup authentication
  * @ingroup authentication
  */
  */
 _MHD_EXTERN char *
 _MHD_EXTERN char *