diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-21 23:30:48 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-22 12:09:13 +0200 |
commit | b8e0fe19ec3bd3b673a14043a4b5e656d9c26d06 (patch) | |
tree | 3b39a3325b56db905891fd624753484c802a18c0 /lib/vtls | |
parent | ee56fdb6910f6bf215eecede9e2e9bfc83cb5f29 (diff) |
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
Closes #1906
Diffstat (limited to 'lib/vtls')
-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..56eb7ebf1 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_NO_BACKENDS; +} + +#endif /* !USE_SSL */ |