diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-02-21 19:49:57 +0500 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-02-21 19:49:57 +0500 |
commit | 71c543f4097d7d559e8d7bd6b87f0cedc4f11154 (patch) | |
tree | 31d86a992c1adb1aaf480df7e985e18aeb9bb810 | |
parent | 07fa8f05f3c297c97828e1c2494c161d3ea376b0 (diff) | |
download | libmicrohttpd-71c543f4097d7d559e8d7bd6b87f0cedc4f11154.tar.gz libmicrohttpd-71c543f4097d7d559e8d7bd6b87f0cedc4f11154.zip |
digestauth: fixed compiler warnings
-rw-r--r-- | src/microhttpd/digestauth.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 277f98b1..05ca63f2 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -3545,9 +3545,10 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection, | |||
3545 | #endif /* HAVE_MESSAGES */ | 3545 | #endif /* HAVE_MESSAGES */ |
3546 | return MHD_NO; | 3546 | return MHD_NO; |
3547 | } | 3547 | } |
3548 | malgo3 &= | 3548 | malgo3 = |
3549 | (enum MHD_DigestAuthMultiQOP) | 3549 | (enum MHD_DigestAuthMultiAlgo3) |
3550 | (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_ALGO3_NON_SESSION)); | 3550 | (malgo3 |
3551 | & (~((enum MHD_DigestAuthMultiAlgo3) MHD_DIGEST_AUTH_ALGO3_NON_SESSION))); | ||
3551 | #ifdef MHD_MD5_SUPPORT | 3552 | #ifdef MHD_MD5_SUPPORT |
3552 | if (0 != (((unsigned int) malgo3) & MHD_DIGEST_BASE_ALGO_MD5)) | 3553 | if (0 != (((unsigned int) malgo3) & MHD_DIGEST_BASE_ALGO_MD5)) |
3553 | s_algo = MHD_DIGEST_AUTH_ALGO3_MD5; | 3554 | s_algo = MHD_DIGEST_AUTH_ALGO3_MD5; |
@@ -3580,8 +3581,10 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection, | |||
3580 | 3581 | ||
3581 | if (MHD_DIGEST_AUTH_MULT_QOP_AUTH_INT == mqop) | 3582 | if (MHD_DIGEST_AUTH_MULT_QOP_AUTH_INT == mqop) |
3582 | MHD_PANIC (_ ("Wrong 'mqop' value, API violation")); | 3583 | MHD_PANIC (_ ("Wrong 'mqop' value, API violation")); |
3583 | mqop &= (enum MHD_DigestAuthMultiQOP) | 3584 | |
3584 | (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_QOP_AUTH_INT)); | 3585 | mqop = (enum MHD_DigestAuthMultiQOP) |
3586 | (mqop | ||
3587 | & (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_QOP_AUTH_INT))); | ||
3585 | 3588 | ||
3586 | if (! digest_init_one_time (da, get_base_digest_algo (s_algo))) | 3589 | if (! digest_init_one_time (da, get_base_digest_algo (s_algo))) |
3587 | MHD_PANIC (_ ("Wrong 'algo' value, API violation")); | 3590 | MHD_PANIC (_ ("Wrong 'algo' value, API violation")); |