-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable MultiSSL in winbuild #3772
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it can be done this way. The other makefiles only have OpenSSL and WinSSL so that might be ok but this one allows for more than that iirc so CURL_WITH_MULTI_SSL would have to be set if any combination of 2 or more are enabled. configure.ac does it like this:
Lines 2693 to 2713 in 521bbbe
case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$AMISSL_ENABLED" in | |
x) | |
AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.]) | |
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this.]) | |
;; | |
x1) | |
# one SSL backend is enabled | |
AC_SUBST(SSL_ENABLED) | |
SSL_ENABLED="1" | |
AC_MSG_NOTICE([built with one SSL backend]) | |
;; | |
*) | |
# more than one SSL backend is enabled | |
AC_SUBST(SSL_ENABLED) | |
SSL_ENABLED="1" | |
AC_SUBST(CURL_WITH_MULTI_SSL) | |
CURL_WITH_MULTI_SSL="1" | |
AC_DEFINE(CURL_WITH_MULTI_SSL, 1, [built with multiple SSL backends]) | |
AC_MSG_NOTICE([built with multiple SSL backends]) | |
;; | |
esac |
There are 3 possible SSL backends that can be enabled with /winbuild:
The second commit in this PR reintroduces the original checks to prohibit multiple backends for the purpose of enabling CURL_WITH_MULTI_SSL
Tested only with the combination of USE_SSL and USE_WINSSL, but should be working for any combination with USE_MBEDTLS as well. |
Thanks |
This patch enables support for MultiSSL for OpenSSL and Schannel in /winbuild by
See https://curl.haxx.se/mail/lib-2019-04/0032.html for the discussion in the curl-library mailinglist.