Text of github.com › curl › curl › issues › 10321 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

openssl + wolfssl combo backend build broken · Issue #10321 · curl/curl · GitHub

Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert openssl + wolfssl combo backend build broken #10321 New issue Copy link New issue Copy link Closed Closed openssl + wolfssl combo backend build broken #10321 Copy link Labels TLS build Description marekr opened on Jan 19, 2023 Issue body actions This commit made a change to curl_ntlm_core 5fd7cd7 It rearranged the includes in the curl_ntlm_core.c so that openssl headers are included before wolfssl if both backends are enabled.

However, the curl_ntlm_core.h header was not updated and it still includes wolfssl before openssl. The problem is curl_ntlm_core.h since updated, if you attempt to build, the source file will include openssl and the header will include wolfssl. Wolfssl's compat types immediately clash into openssl types The result is FAILED: lib/CMakeFiles/libcurl.dir/curl_ntlm_core.c.obj C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1434~1.319\bin\Hostx64\x64\cl.exe -DBUILDING_LIBCURL -DCURLDEBUG -DCURL_HIDDEN_SYMBOLS -DDEBUGBUILD -DHAVE_CONFIG_H -DOPENSSL_SUPPRESS_DEPRECATED -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_UNICODE -Dlibcurl_EXPORTS -IE:\vcpkgup\buildtrees\curl\src\url-7_87_0-fe2580e2b4\include -IE:\vcpkgup\buildtrees\curl\x64-windows-dbg\lib\..\include -IE:\vcpkgup\buildtrees\curl\src\url-7_87_0-fe2580e2b4\lib\.. -IE:\vcpkgup\buildtrees\curl\src\url-7_87_0-fe2580e2b4\lib\..\include -IE:\vcpkgup\buildtrees\curl\x64-windows-dbg\lib\.. -IE:\vcpkgup\buildtrees\curl\src\url-7_87_0-fe2580e2b4\lib -IE:\vcpkgup\buildtrees\curl\x64-windows-dbg\lib -external:IE:\vcpkgup\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W4 /utf-8 /MP /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -MDd /showIncludes /Folib\CMakeFiles\libcurl.dir\curl_ntlm_core.c.obj /Fdlib\CMakeFiles\libcurl.dir\ /FS -c E:\vcpkgup\buildtrees\curl\src\url-7_87_0-fe2580e2b4\lib\curl_ntlm_core.c E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(54): error C2371: 'EVP_MD': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(103): note: see declaration of 'EVP_MD' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(55): error C2371: 'EVP_MD_CTX': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(104): note: see declaration of 'EVP_MD_CTX' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(56): error C2371: 'EVP_CIPHER': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(101): note: see declaration of 'EVP_CIPHER' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(57): error C2371: 'EVP_CIPHER_CTX': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(102): note: see declaration of 'EVP_CIPHER_CTX' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(58): error C2371: 'ASN1_PCTX': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(70): note: see declaration of 'ASN1_PCTX' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(59): error C2371: 'EVP_PKEY': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(107): note: see declaration of 'EVP_PKEY' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(60): error C2371: 'PKCS8_PRIV_KEY_INFO': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(174): note: see declaration of 'PKCS8_PRIV_KEY_INFO' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(62): error C2371: 'ENGINE': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(183): note: see declaration of 'ENGINE' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/compat_types.h(63): error C2371: 'EVP_PKEY_CTX': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(112): note: see declaration of 'EVP_PKEY_CTX' E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(163): error C2059: syntax error: 'constant' E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(223): error C2065: 'RSA_MAX_ID_LEN': undeclared identifier E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(223): error C2057: expected constant expression E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(224): error C2229: struct 'RsaKey' has an illegal zero-sized array E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(225): error C2065: 'RSA_MAX_LABEL_LEN': undeclared identifier E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(225): error C2057: expected constant expression E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/rsa.h(226): error C2229: struct 'RsaKey' has an illegal zero-sized array E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/bn.h(164): error C2371: 'BIGNUM': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(87): note: see declaration of 'BIGNUM' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/bn.h(165): error C2371: 'BN_CTX': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(88): note: see declaration of 'BN_CTX' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/bn.h(166): error C2371: 'BN_GENCB': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(92): note: see declaration of 'BN_GENCB' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/rsa.h(102): error C2371: 'RSA': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(143): note: see declaration of 'RSA' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/rsa.h(103): error C2371: 'RSA_METHOD': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(144): note: see declaration of 'RSA_METHOD' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/hmac.h(70): error C2371: 'HMAC_CTX': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(132): note: see declaration of 'HMAC_CTX' E:\vcpkgup\installed\x64-windows\include\wolfssl/wolfcrypt/asn.h(760): error C2059: syntax error: 'constant' E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2324): error C2365: 'OCSP_RESPONSE': redefinition; previous definition was 'typedef' E:\vcpkgup\installed\x64-windows\include\openssl/types.h(203): note: see declaration of 'OCSP_RESPONSE' E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2324): error C2086: '<unnamed-enum-OCSP_NOCERTS> OCSP_RESPONSE': redefinition E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2324): note: see declaration of 'OCSP_RESPONSE' E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2328): error C2365: 'ASN1_GENERALIZEDTIME': redefinition; previous definition was 'typedef' E:\vcpkgup\installed\x64-windows\include\openssl/types.h(57): note: see declaration of 'ASN1_GENERALIZEDTIME' E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2328): error C2086: '<unnamed-enum-OCSP_NOCERTS> ASN1_GENERALIZEDTIME': redefinition E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2328): note: see declaration of 'ASN1_GENERALIZEDTIME' E:\vcpkgup\installed\x64-windows\include\wolfssl/ssl.h(2329): error C2059: syntax error: 'constant' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/crypto.h(32): error C2371: 'OPENSSL_INIT_SETTINGS': redefinition; different basic types E:\vcpkgup\installed\x64-windows\include\openssl/types.h(178): note: see declaration of 'OPENSSL_INIT_SETTINGS' E:\vcpkgup\installed\x64-windows\include\wolfssl/openssl/crypto.h(39): err

The rest of this page is on the live site.