]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sha256/hmac: use these with TLS builds now
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Jan 2025 22:49:09 +0000 (23:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Jan 2025 11:13:59 +0000 (12:13 +0100)
Used by the SSL session cache code.

Bug: https://curl.se/mail/lib-2025-01/0041.html
Reported-by: Aleksander Mazur
Closes #15994

lib/curl_hmac.h
lib/curl_sha256.h
lib/hmac.c
lib/sha256.c

index ed5035ca632e6e203730f78bddfbfa285be7fb78..f54edeb49edef82065102fb226559fddaecb5736 100644 (file)
@@ -24,9 +24,9 @@
  *
  ***************************************************************************/
 
-#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI))         \
-  || !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH)   \
-  || defined(USE_LIBSSH2)
+#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) ||      \
+  !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) ||   \
+  defined(USE_SSL)
 
 #include <curl/curl.h>
 
index 00e5b74c58dc12975768af0c4f2d18fbda772941..f532939d056a3608069fe6f845520b64ed23415a 100644 (file)
@@ -26,7 +26,7 @@
  ***************************************************************************/
 
 #if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) \
-    || defined(USE_LIBSSH2)
+    || defined(USE_LIBSSH2) || defined(USE_SSL)
 
 #include <curl/curl.h>
 #include "curl_hmac.h"
index 088c9bdcec892027b7f82f4cb95f26b8c21b8537..7b8a29e69232b6c06bc9a5853fabf575a269db01 100644 (file)
@@ -26,8 +26,9 @@
 
 #include "curl_setup.h"
 
-#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI))         \
-  || !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH)
+#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) ||      \
+  !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) ||   \
+  defined(USE_SSL)
 
 #include <curl/curl.h>
 
index c5bb921bb3029c09360a81433c064df61a74304e..4af858eb7025e5db10ce135ea712fbcb44d499f4 100644 (file)
@@ -26,7 +26,7 @@
 #include "curl_setup.h"
 
 #if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) \
-    || defined(USE_LIBSSH2)
+  || defined(USE_LIBSSH2) || defined(USE_SSL)
 
 #include "warnless.h"
 #include "curl_sha256.h"