]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: enable hmac for digest as well
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Sep 2023 07:56:26 +0000 (09:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Sep 2023 11:38:42 +0000 (13:38 +0200)
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
lib/hmac.c
lib/vauth/cleartext.c

index 9438ca782a797e2c635768b6280a3a3d1d9ec63b..2ea03dd2685e261082700b8996e20de4d2e8dc85 100644 (file)
@@ -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 <curl/curl.h>
 
index 87e7be8c653a480204dcb81a2c93046399b16a28..4019b67f8e05919c87ae45cda2626327fb351af2 100644 (file)
@@ -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 <curl/curl.h>
 
index c651fc5145371756019ace4fcb5c1af7ce94a9da..972a87448059271941eabf7ab764f814f60b099e 100644 (file)
@@ -35,7 +35,6 @@
 #include "urldata.h"
 
 #include "vauth/vauth.h"
-#include "curl_md5.h"
 #include "warnless.h"
 #include "strtok.h"
 #include "sendf.h"