diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-07-14 11:09:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-07-14 13:27:45 +0200 |
commit | 2ed04522e24b801251d7fd1768b7fccfd7b8deac (patch) | |
tree | 99b8cd397d1a2e17f1b559f24343e42e0549dac3 /doc | |
parent | 2ade9eaad8d61ffdf18de113ff0934ad84565ffb (diff) | |
download | libmicrohttpd-2ed04522e24b801251d7fd1768b7fccfd7b8deac.tar.gz libmicrohttpd-2ed04522e24b801251d7fd1768b7fccfd7b8deac.zip |
add support for digest auth with hashed password
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libmicrohttpd.texi | 15 |
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 | |||
2393 | Most of the time it is sound to specify 300 seconds as its values. | 2393 | Most 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) | ||
2397 | Checks if the provided values in the WWW-Authenticate header are valid | ||
2398 | and 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, | ||
2403 | it 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. | ||
2408 | Most 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) |
2397 | Queues a response to request authentication from the client, | 2412 | Queues a response to request authentication from the client, |
2398 | return @code{MHD_YES} if successful, otherwise @code{MHD_NO}. | 2413 | return @code{MHD_YES} if successful, otherwise @code{MHD_NO}. |