From 8863191a243d27e56b4b6be69efcb5c82a35c0c4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 Sep 2023 09:56:26 +0200 Subject: [PATCH] lib: enable hmac for digest as well Previously a build that disabled NTLM and aws-sigv4 would fail to build since the hmac was disabled, but it is also needed for digest auth. Follow-up to e92edfbef64448ef Fixes #11890 Reported-by: Aleksander Mazur Closes #11896 --- lib/curl_hmac.h | 4 ++-- lib/hmac.c | 4 ++-- lib/vauth/cleartext.c | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/curl_hmac.h b/lib/curl_hmac.h index 9438ca782a797e..2ea03dd2685e26 100644 --- a/lib/curl_hmac.h +++ b/lib/curl_hmac.h @@ -24,8 +24,8 @@ * ***************************************************************************/ -#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \ - || !defined(CURL_DISABLE_AWS) +#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \ + || !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) #include diff --git a/lib/hmac.c b/lib/hmac.c index 87e7be8c653a48..4019b67f8e0591 100644 --- a/lib/hmac.c +++ b/lib/hmac.c @@ -26,8 +26,8 @@ #include "curl_setup.h" -#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \ - || !defined(CURL_DISABLE_AWS) +#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \ + || !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) #include diff --git a/lib/vauth/cleartext.c b/lib/vauth/cleartext.c index c651fc51453717..972a8744805927 100644 --- a/lib/vauth/cleartext.c +++ b/lib/vauth/cleartext.c @@ -35,7 +35,6 @@ #include "urldata.h" #include "vauth/vauth.h" -#include "curl_md5.h" #include "warnless.h" #include "strtok.h" #include "sendf.h"