mirror of
https://github.com/curl/curl.git
synced 2026-04-17 17:11:42 +03:00
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=<backend> option of the ./configure script. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
3063254e32
commit
c7170e20d0
2 changed files with 58 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue