From 2f417545e0ece2d91634947fdb7be8522f8db374 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 21 Sep 2017 23:30:48 +0200 Subject: vtls: provide curl_global_sslset() even in non-SSL builds ... it just returns error: Bug: https://github.com/curl/curl/commit/1328f69d53f2f2e937696ea954c480412b018451#commitcomment-24470367 Reported-by: Marcel Raad --- lib/vtls/vtls.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.1