aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index cac5dd29..e4437441 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -2393,6 +2393,21 @@ most probably it will be the result of a lookup of the username against a local
2393Most of the time it is sound to specify 300 seconds as its values. 2393Most of the time it is sound to specify 300 seconds as its values.
2394@end deftypefun 2394@end deftypefun
2395 2395
2396@deftypefun int MHD_digest_auth_check_digest (struct MHD_Connection *connection, const char *realm, const char *username, const unsigned char digest[MHD_MD5_DIGEST_SIZE], unsigned int nonce_timeout)
2397Checks if the provided values in the WWW-Authenticate header are valid
2398and sound according to RFC2716. If valid return @code{MHD_YES}, otherwise return @code{MHD_NO}.
2399
2400@var{realm} must reference to a zero-terminated string representing the realm.
2401
2402@var{username} must reference to a zero-terminated string representing the username,
2403it is usually the returned value from MHD_digest_auth_get_username.
2404
2405@var{digest} pointer to the binary MD5 sum for the precalculated hash value ``userame:realm:password'' of @code{MHD_MD5_DIGEST_SIZE} bytes.
2406
2407@var{nonce_timeout} is the amount of time in seconds for a nonce to be invalid.
2408Most of the time it is sound to specify 300 seconds as its values.
2409@end deftypefun
2410
2396@deftypefun int MHD_queue_auth_fail_response (struct MHD_Connection *connection, const char *realm, const char *opaque, struct MHD_Response *response, int signal_stale) 2411@deftypefun int MHD_queue_auth_fail_response (struct MHD_Connection *connection, const char *realm, const char *opaque, struct MHD_Response *response, int signal_stale)
2397Queues a response to request authentication from the client, 2412Queues a response to request authentication from the client,
2398return @code{MHD_YES} if successful, otherwise @code{MHD_NO}. 2413return @code{MHD_YES} if successful, otherwise @code{MHD_NO}.