diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-21 23:30:48 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-21 23:30:48 +0200 |
commit | 2f417545e0ece2d91634947fdb7be8522f8db374 (patch) | |
tree | daca70b9e274b94f36b7c8f8d3f9251528454cff | |
parent | fa9482ab0907dfacd0fb619add2dbf41de2d8c9c (diff) | |
download | curl-bagder/sslset-without-ssl.tar.gz |
vtls: provide curl_global_sslset() even in non-SSL buildsbagder/sslset-without-ssl
... it just returns error:
Bug: https://github.com/curl/curl/commit/1328f69d53f2f2e937696ea954c480412b018451#commitcomment-24470367
Reported-by: Marcel Raad
-rw-r--r-- | lib/vtls/vtls.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index 6e230ee22..bdbfca4d5 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -1296,4 +1296,14 @@ CURLsslset curl_global_sslset(curl_sslbackend id, const char *name, return CURLSSLSET_UNKNOWN_BACKEND; } -#endif /* USE_SSL */ +#else /* USE_SSL */ +CURLsslset curl_global_sslset(curl_sslbackend id, const char *name, + const curl_ssl_backend ***avail) +{ + (void)id; + (void)name; + (void)avail; + return CURLSSLSET_UNKNOWN_BACKEND; +} + +#endif /* !USE_SSL */ |