From c7170e20d0a18ec8a514b4daa53bcdbb4dcb3a05 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 24 Aug 2017 22:26:48 +0200 Subject: configure: allow setting the default SSL backend Previously, we used as default SSL backend whatever was first in the `available_backends` array. However, some users may want to override that default without patching the source code. Now they can: with the --with-default-ssl-backend= option of the ./configure script. Signed-off-by: Johannes Schindelin --- lib/vtls/vtls.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/vtls/vtls.c') diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index 85665b7df..73ed7a31b 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -1246,6 +1246,10 @@ static int multissl_init(const struct Curl_ssl *backend) return 1; env = getenv("CURL_SSL_BACKEND"); +#ifdef CURL_DEFAULT_SSL_BACKEND + if(!env) + env = CURL_DEFAULT_SSL_BACKEND; +#endif if(env) for(i = 0; available_backends[i]; i++) if(!strcmp(env, available_backends[i]->info.name)) { -- cgit v1.2.3