vtls: deprioritize Secure Transport

Moved Secure Transport behind OpenSSL, so we can build CURL with both
and prefer using OpenSSL over Secure Transport by default.

Closes #13547
This commit is contained in:
MonkeybreadSoftware 2024-05-07 09:45:15 +02:00 committed by Daniel Stenberg
parent 655d44d139
commit 810933d779
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1342,8 +1342,6 @@ const struct Curl_ssl *Curl_ssl =
&Curl_ssl_multi; &Curl_ssl_multi;
#elif defined(USE_WOLFSSL) #elif defined(USE_WOLFSSL)
&Curl_ssl_wolfssl; &Curl_ssl_wolfssl;
#elif defined(USE_SECTRANSP)
&Curl_ssl_sectransp;
#elif defined(USE_GNUTLS) #elif defined(USE_GNUTLS)
&Curl_ssl_gnutls; &Curl_ssl_gnutls;
#elif defined(USE_MBEDTLS) #elif defined(USE_MBEDTLS)
@ -1352,6 +1350,8 @@ const struct Curl_ssl *Curl_ssl =
&Curl_ssl_rustls; &Curl_ssl_rustls;
#elif defined(USE_OPENSSL) #elif defined(USE_OPENSSL)
&Curl_ssl_openssl; &Curl_ssl_openssl;
#elif defined(USE_SECTRANSP)
&Curl_ssl_sectransp;
#elif defined(USE_SCHANNEL) #elif defined(USE_SCHANNEL)
&Curl_ssl_schannel; &Curl_ssl_schannel;
#elif defined(USE_BEARSSL) #elif defined(USE_BEARSSL)
@ -1364,9 +1364,6 @@ static const struct Curl_ssl *available_backends[] = {
#if defined(USE_WOLFSSL) #if defined(USE_WOLFSSL)
&Curl_ssl_wolfssl, &Curl_ssl_wolfssl,
#endif #endif
#if defined(USE_SECTRANSP)
&Curl_ssl_sectransp,
#endif
#if defined(USE_GNUTLS) #if defined(USE_GNUTLS)
&Curl_ssl_gnutls, &Curl_ssl_gnutls,
#endif #endif
@ -1376,6 +1373,9 @@ static const struct Curl_ssl *available_backends[] = {
#if defined(USE_OPENSSL) #if defined(USE_OPENSSL)
&Curl_ssl_openssl, &Curl_ssl_openssl,
#endif #endif
#if defined(USE_SECTRANSP)
&Curl_ssl_sectransp,
#endif
#if defined(USE_SCHANNEL) #if defined(USE_SCHANNEL)
&Curl_ssl_schannel, &Curl_ssl_schannel,
#endif #endif