summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-09-21 23:30:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-09-21 23:30:48 +0200
commit2f417545e0ece2d91634947fdb7be8522f8db374 (patch)
treedaca70b9e274b94f36b7c8f8d3f9251528454cff
parentfa9482ab0907dfacd0fb619add2dbf41de2d8c9c (diff)
downloadcurl-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.c12
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 */