aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-08 22:59:05 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-08 22:59:05 +0200
commit6347f514aa2388e774d5bf356df8046864e5f73c (patch)
tree98cebf52cce627341d62620255f0ffe0ed36365d /src/microhttpd/digestauth.c
parent6702e6202368720d7a381669c03eedc318f225ca (diff)
downloadlibmicrohttpd-6347f514aa2388e774d5bf356df8046864e5f73c.tar.gz
libmicrohttpd-6347f514aa2388e774d5bf356df8046864e5f73c.zip
introduce 'enum MHD_Result'
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r--src/microhttpd/digestauth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index b6a684a4..1fc931ad 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -521,7 +521,7 @@ lookup_sub_value (char *dest,
521 * @param nc The nonce counter, zero to add the nonce to the array 521 * @param nc The nonce counter, zero to add the nonce to the array
522 * @return #MHD_YES if successful, #MHD_NO if invalid (or we have no NC array) 522 * @return #MHD_YES if successful, #MHD_NO if invalid (or we have no NC array)
523 */ 523 */
524static int 524static enum MHD_Result
525check_nonce_nc (struct MHD_Connection *connection, 525check_nonce_nc (struct MHD_Connection *connection,
526 const char *nonce, 526 const char *nonce,
527 uint64_t nc) 527 uint64_t nc)
@@ -743,7 +743,7 @@ calculate_nonce (uint32_t nonce_time,
743 * @return #MHD_YES if the key-value pair is in the headers, 743 * @return #MHD_YES if the key-value pair is in the headers,
744 * #MHD_NO if not 744 * #MHD_NO if not
745 */ 745 */
746static int 746static enum MHD_Result
747test_header (struct MHD_Connection *connection, 747test_header (struct MHD_Connection *connection,
748 const char *key, 748 const char *key,
749 size_t key_size, 749 size_t key_size,
@@ -790,14 +790,14 @@ test_header (struct MHD_Connection *connection,
790 * @return #MHD_YES if the arguments match, 790 * @return #MHD_YES if the arguments match,
791 * #MHD_NO if not 791 * #MHD_NO if not
792 */ 792 */
793static int 793static enum MHD_Result
794check_argument_match (struct MHD_Connection *connection, 794check_argument_match (struct MHD_Connection *connection,
795 const char *args) 795 const char *args)
796{ 796{
797 struct MHD_HTTP_Header *pos; 797 struct MHD_HTTP_Header *pos;
798 char *argb; 798 char *argb;
799 unsigned int num_headers; 799 unsigned int num_headers;
800 int ret; 800 enum MHD_Result ret;
801 801
802 argb = strdup (args); 802 argb = strdup (args);
803 if (NULL == argb) 803 if (NULL == argb)
@@ -1338,7 +1338,7 @@ MHD_digest_auth_check_digest (struct MHD_Connection *connection,
1338 * @return #MHD_YES on success, #MHD_NO otherwise 1338 * @return #MHD_YES on success, #MHD_NO otherwise
1339 * @ingroup authentication 1339 * @ingroup authentication
1340 */ 1340 */
1341int 1341enum MHD_Result
1342MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, 1342MHD_queue_auth_fail_response2 (struct MHD_Connection *connection,
1343 const char *realm, 1343 const char *realm,
1344 const char *opaque, 1344 const char *opaque,
@@ -1461,7 +1461,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection,
1461 * @return #MHD_YES on success, #MHD_NO otherwise 1461 * @return #MHD_YES on success, #MHD_NO otherwise
1462 * @ingroup authentication 1462 * @ingroup authentication
1463 */ 1463 */
1464int 1464enum MHD_Result
1465MHD_queue_auth_fail_response (struct MHD_Connection *connection, 1465MHD_queue_auth_fail_response (struct MHD_Connection *connection,
1466 const char *realm, 1466 const char *realm,
1467 const char *opaque, 1467 const char *opaque,