diff options
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r-- | src/microhttpd/digestauth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index d8d3b4ea..c3260d1b 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -814,7 +814,7 @@ check_argument_match (struct MHD_Connection *connection, | |||
814 | &test_header, | 814 | &test_header, |
815 | &num_headers); | 815 | &num_headers); |
816 | free (argb); | 816 | free (argb); |
817 | if (MHD_YES != ret) | 817 | if (MHD_NO == ret) |
818 | { | 818 | { |
819 | return MHD_NO; | 819 | return MHD_NO; |
820 | } | 820 | } |
@@ -1025,7 +1025,7 @@ digest_auth_check_all (struct MHD_Connection *connection, | |||
1025 | * Checking if that combination of nonce and nc is sound | 1025 | * Checking if that combination of nonce and nc is sound |
1026 | * and not a replay attack attempt. Also adds the nonce | 1026 | * and not a replay attack attempt. Also adds the nonce |
1027 | * to the nonce-nc map if it does not exist there. | 1027 | * to the nonce-nc map if it does not exist there. |
1028 | */if (MHD_YES != | 1028 | */if (MHD_NO == |
1029 | check_nonce_nc (connection, | 1029 | check_nonce_nc (connection, |
1030 | nonce, | 1030 | nonce, |
1031 | nci)) | 1031 | nci)) |
@@ -1114,7 +1114,7 @@ digest_auth_check_all (struct MHD_Connection *connection, | |||
1114 | args = ""; | 1114 | args = ""; |
1115 | else | 1115 | else |
1116 | args++; | 1116 | args++; |
1117 | if (MHD_YES != | 1117 | if (MHD_NO == |
1118 | check_argument_match (connection, | 1118 | check_argument_match (connection, |
1119 | args) ) | 1119 | args) ) |
1120 | { | 1120 | { |
@@ -1363,7 +1363,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, | |||
1363 | realm, | 1363 | realm, |
1364 | &da, | 1364 | &da, |
1365 | nonce); | 1365 | nonce); |
1366 | if (MHD_YES != | 1366 | if (MHD_NO == |
1367 | check_nonce_nc (connection, | 1367 | check_nonce_nc (connection, |
1368 | nonce, | 1368 | nonce, |
1369 | 0)) | 1369 | 0)) |
@@ -1417,7 +1417,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, | |||
1417 | else | 1417 | else |
1418 | ret = MHD_NO; | 1418 | ret = MHD_NO; |
1419 | #if 0 | 1419 | #if 0 |
1420 | if ( (MHD_YES == ret) && (AND in state : 100 continue aborting ...)) | 1420 | if ( (MHD_NO != ret) && (AND in state : 100 continue aborting ...)) |
1421 | ret = MHD_add_response_header (response, | 1421 | ret = MHD_add_response_header (response, |
1422 | MHD_HTTP_HEADER_CONNECTION, | 1422 | MHD_HTTP_HEADER_CONNECTION, |
1423 | "close"); | 1423 | "close"); |
@@ -1428,7 +1428,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, | |||
1428 | ret = MHD_NO; | 1428 | ret = MHD_NO; |
1429 | } | 1429 | } |
1430 | 1430 | ||
1431 | if (MHD_YES == ret) | 1431 | if (MHD_NO != ret) |
1432 | { | 1432 | { |
1433 | ret = MHD_queue_response (connection, | 1433 | ret = MHD_queue_response (connection, |
1434 | MHD_HTTP_UNAUTHORIZED, | 1434 | MHD_HTTP_UNAUTHORIZED, |