← Commit list

ca46112991

Daniel Stenberg
Daniel Stenberg
2025-12-24
SUCCESS Duration: 191s

Subject

curl_ntlm_core: fix DES_* symbols for some wolfSSL builds

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_ntlm_core.c+8 -0
@@ -76,6 +76,7 @@
#else
# include <wolfssl/options.h>
# include <wolfssl/openssl/des.h>
+# include <wolfssl/version.h>
# ifdef OPENSSL_COEXIST
# define DES_key_schedule WOLFSSL_DES_key_schedule
# define DES_cblock WOLFSSL_DES_cblock
@@ -84,6 +85,13 @@
# define DES_set_key_unchecked wolfSSL_DES_set_key_unchecked
# define DES_ecb_encrypt wolfSSL_DES_ecb_encrypt
# define DESKEY(x) ((WOLFSSL_DES_key_schedule *)(x))
+
+# if defined(LIBWOLFSSL_VERSION_HEX) && \
+ (LIBWOLFSSL_VERSION_HEX >= 0x05007006)
+# define DES_ENCRYPT WC_DES_ENCRYPT
+# define DES_DECRYPT WC_DES_DECRYPT
+# endif
+
# else
# define DESKEY(x) &x
# endif