vtls: provide curl_global_sslset() even in non-SSL builds

... it just returns error:

Bug: 1328f69d53 (commitcomment-24470367)
Reported-by: Marcel Raad

Closes #1906
This commit is contained in:
Daniel Stenberg 2017-09-21 23:30:48 +02:00
parent ee56fdb691
commit b8e0fe19ec
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 18 additions and 4 deletions

View file

@ -2370,7 +2370,8 @@ typedef struct {
typedef enum {
CURLSSLSET_OK = 0,
CURLSSLSET_UNKNOWN_BACKEND,
CURLSSLSET_TOO_LATE
CURLSSLSET_TOO_LATE,
CURLSSLSET_NO_BACKENDS /* libcurl was built without any SSL support */
} CURLsslset;
CURL_EXTERN CURLsslset curl_global_sslset(curl_sslbackend id, const char *name,