From 77485747f19b22a6f4c935b8f04cb1f690a85227 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Sun, 17 Mar 2024 03:54:39 +0100 Subject: [PATCH] Enable WOLFSSL_ALT_CERT_CHAINS --- 3rdparty/curl/libcurl.vcxproj | 2 +- 3rdparty/wolfssl/CMakeLists.txt | 1 + 3rdparty/wolfssl/extra/win32/user_settings.h | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/3rdparty/curl/libcurl.vcxproj b/3rdparty/curl/libcurl.vcxproj index 503a4d1347..ed2717394b 100644 --- a/3rdparty/curl/libcurl.vcxproj +++ b/3rdparty/curl/libcurl.vcxproj @@ -44,7 +44,7 @@ MaxSpeed OnlyExplicitInline curl\include;curl\lib;extra;$(SolutionDir)3rdparty\wolfssl\wolfssl\wolfssl;$(SolutionDir)3rdparty\wolfssl\wolfssl;$(SolutionDir)3rdparty\wolfssl\extra\win32;%(AdditionalIncludeDirectories) - HAVE_SNI;NDEBUG;BUILDING_LIBCURL;CURL_STATICLIB;USE_WOLFSSL;NO_MD4;WOLFSSL_USER_SETTINGS;USE_IPV6;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;%(PreprocessorDefinitions) + WOLFSSL_ALT_CERT_CHAINS;HAVE_SNI;NDEBUG;BUILDING_LIBCURL;CURL_STATICLIB;USE_WOLFSSL;NO_MD4;WOLFSSL_USER_SETTINGS;USE_IPV6;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;%(PreprocessorDefinitions) true true TurnOffAllWarnings diff --git a/3rdparty/wolfssl/CMakeLists.txt b/3rdparty/wolfssl/CMakeLists.txt index 0d16ccbe18..777ce5b4ea 100644 --- a/3rdparty/wolfssl/CMakeLists.txt +++ b/3rdparty/wolfssl/CMakeLists.txt @@ -18,6 +18,7 @@ else() set(WOLFSSL_SNI ON CACHE STRING "Enable SNI (default: disabled)") set(WOLFSSL_OPENSSLEXTRA ON CACHE STRING "Enable extra OpenSSL API, size+ (default: disabled)") set(WOLFSSL_HARDEN OFF CACHE STRING "Enable Hardened build, Enables Timing Resistance and Blinding (default: enabled)") + set(WOLFSSL_ALT_CERT_CHAINS ON CACHE STRING "Enable support for Alternate certification chains (default: disabled)") add_subdirectory(wolfssl EXCLUDE_FROM_ALL) diff --git a/3rdparty/wolfssl/extra/win32/user_settings.h b/3rdparty/wolfssl/extra/win32/user_settings.h index eb81754c35..09cff64fc0 100644 --- a/3rdparty/wolfssl/extra/win32/user_settings.h +++ b/3rdparty/wolfssl/extra/win32/user_settings.h @@ -51,6 +51,9 @@ #define ECC_TIMING_RESISTANT #define USE_FAST_MATH #define FP_MAX_BITS 8192 +#ifndef WOLFSSL_ALT_CERT_CHAINS +#define WOLFSSL_ALT_CERT_CHAINS +#endif /* UTF-8 aware filesystem functions for Windows */ #define WOLFSSL_USER_FILESYSTEM