gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: Improved doxy for MH


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: Improved doxy for MHD_free() and MHD_digest_auth_get_username()
Date: Thu, 23 Nov 2017 16:08:45 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 54cd6ac4 Improved doxy for MHD_free() and 
MHD_digest_auth_get_username()
54cd6ac4 is described below

commit 54cd6ac43708793ee7e03a2ac1038fd86e045030
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Nov 23 18:08:35 2017 +0300

    Improved doxy for MHD_free() and MHD_digest_auth_get_username()
---
 src/include/microhttpd.h    | 1 +
 src/microhttpd/digestauth.c | 1 +
 src/microhttpd/memorypool.c | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 6b749477..e7d8bf52 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3117,6 +3117,7 @@ MHD_digest_auth_get_username (struct MHD_Connection 
*connection);
  * Free the memory given by @a ptr. Calls "free(ptr)".  This function
  * should be used to free the username returned by
  * #MHD_digest_auth_get_username().
+ * @note Since v0.9.56
  *
  * @param ptr pointer to free.
  */
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index ace3cdc2..509652e8 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -462,6 +462,7 @@ check_nonce_nc (struct MHD_Connection *connection,
  * @param connection The MHD connection structure
  * @return NULL if no username could be found, a pointer
  *                     to the username if found
+ * @warning Returned value must be freed by #MHD_free().
  * @ingroup authentication
  */
 char *
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 163aa4e3..bda45e1e 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -81,10 +81,11 @@ struct MemoryPool
  * Free the memory given by @a ptr. Calls "free(ptr)".  This function
  * should be used to free the username returned by
  * #MHD_digest_auth_get_username().
+ * @note Since v0.9.56
  *
  * @param ptr pointer to free.
  */
-void
+_MHD_EXTERN void
 MHD_free (void *ptr)
 {
   free (ptr);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]