diff options
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r-- | doc/libmicrohttpd.texi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi index 05b1f834..2e0f196f 100644 --- a/doc/libmicrohttpd.texi +++ b/doc/libmicrohttpd.texi | |||
@@ -2342,13 +2342,17 @@ client certificates is presented in the MHD tutorial. | |||
2342 | @node microhttpd-dauth basic | 2342 | @node microhttpd-dauth basic |
2343 | @section Using Basic Authentication | 2343 | @section Using Basic Authentication |
2344 | 2344 | ||
2345 | @deftypefun {void} MHD_free (void *ptr) | ||
2346 | Free the memory given at @code{ptr}. Used to free data structures allocated by MHD. Calls @code{free(ptr)}. | ||
2347 | @end deftypefun | ||
2348 | |||
2345 | @deftypefun {char *} MHD_basic_auth_get_username_password (struct MHD_Connection *connection, char** password) | 2349 | @deftypefun {char *} MHD_basic_auth_get_username_password (struct MHD_Connection *connection, char** password) |
2346 | Get the username and password from the basic authorization header sent by the client. | 2350 | Get the username and password from the basic authorization header sent by the client. |
2347 | Return @code{NULL} if no username could be found, a pointer to the username if found. | 2351 | Return @code{NULL} if no username could be found, a pointer to the username if found. |
2348 | If returned value is not @code{NULL}, the value must be @code{free()}'ed. | 2352 | If returned value is not @code{NULL}, the value must be @code{MHD_free()}'ed. |
2349 | 2353 | ||
2350 | @var{password} reference a buffer to store the password. It can be @code{NULL}. | 2354 | @var{password} reference a buffer to store the password. It can be @code{NULL}. |
2351 | If returned value is not @code{NULL}, the value must be @code{free()}'ed. | 2355 | If returned value is not @code{NULL}, the value must be @code{MHD_free()}'ed. |
2352 | @end deftypefun | 2356 | @end deftypefun |
2353 | 2357 | ||
2354 | @deftypefun {int} MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, const char *realm, struct MHD_Response *response) | 2358 | @deftypefun {int} MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, const char *realm, struct MHD_Response *response) |
@@ -2370,7 +2374,7 @@ client with a 401 HTTP status. | |||
2370 | @deftypefun {char *} MHD_digest_auth_get_username (struct MHD_Connection *connection) | 2374 | @deftypefun {char *} MHD_digest_auth_get_username (struct MHD_Connection *connection) |
2371 | Find and return a pointer to the username value from the request header. | 2375 | Find and return a pointer to the username value from the request header. |
2372 | Return @code{NULL} if the value is not found or header does not exist. | 2376 | Return @code{NULL} if the value is not found or header does not exist. |
2373 | If returned value is not @code{NULL}, the value must be @code{free()}'ed. | 2377 | If returned value is not @code{NULL}, the value must be @code{MHD_free()}'ed. |
2374 | @end deftypefun | 2378 | @end deftypefun |
2375 | 2379 | ||
2376 | @deftypefun int MHD_digest_auth_check (struct MHD_Connection *connection, const char *realm, const char *username, const char *password, unsigned int nonce_timeout) | 2380 | @deftypefun int MHD_digest_auth_check (struct MHD_Connection *connection, const char *realm, const char *username, const char *password, unsigned int nonce_timeout) |