aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-08 18:21:20 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-08 18:21:20 +0100
commitad8a3e3fde50de45d075dbb6971ed52003200ee2 (patch)
tree38a8af9ca32efd3dd37f4e11a54c268fcf2a6304
parent2dc75b83bdaee5ac70087888af6d9c9011a2a3e7 (diff)
downloadlibmicrohttpd-ad8a3e3fde50de45d075dbb6971ed52003200ee2.tar.gz
libmicrohttpd-ad8a3e3fde50de45d075dbb6971ed52003200ee2.zip
cosmetics
-rw-r--r--src/microhttpd/digestauth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index b2944fad..0c86c58e 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -666,7 +666,7 @@ MHD_digest_auth_get_username (struct MHD_Connection *connection)
666 * @param uri HTTP URI (in MHD, without the arguments ("?k=v") 666 * @param uri HTTP URI (in MHD, without the arguments ("?k=v")
667 * @param realm A string of characters that describes the realm of auth. 667 * @param realm A string of characters that describes the realm of auth.
668 * @param da digest algorithm to use 668 * @param da digest algorithm to use
669 * @param nonce A pointer to a character array for the nonce to put in, 669 * @param[out] nonce A pointer to a character array for the nonce to put in,
670 * must provide NONCE_STD_LEN(da->digest_size)+1 bytes 670 * must provide NONCE_STD_LEN(da->digest_size)+1 bytes
671 */ 671 */
672static void 672static void
@@ -938,7 +938,8 @@ digest_auth_check_all (struct MHD_Connection *connection,
938 large, but of course in theory the 938 large, but of course in theory the
939 #MHD_OPTION_CONNECTION_MEMORY_LIMIT might be very large 939 #MHD_OPTION_CONNECTION_MEMORY_LIMIT might be very large
940 and would thus permit sending a >32k authorization 940 and would thus permit sending a >32k authorization
941 header value. */return MHD_NO; 941 header value. */
942 return MHD_NO;
942 } 943 }
943 if (TIMESTAMP_BIN_SIZE * 2 != 944 if (TIMESTAMP_BIN_SIZE * 2 !=
944 MHD_strx_to_uint32_n_ (nonce + len - TIMESTAMP_BIN_SIZE * 2, 945 MHD_strx_to_uint32_n_ (nonce + len - TIMESTAMP_BIN_SIZE * 2,