diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2015-03-26 02:31:35 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-03-27 09:31:30 +0100 |
commit | 488102fc17f0980e883c6b1d1bea8d86249088c4 (patch) | |
tree | 6ace5df5cae6c851fe38a0509bfff25798d74a81 | |
parent | 559e2cc921c58998f1f58ef47ba34901709fd55b (diff) |
url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -892,7 +892,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, * Set explicit SSL version to try to connect with, as some SSL * implementations are lame. */ +#ifdef USE_SSL data->set.ssl.version = va_arg(param, long); +#else + result = CURLE_UNKNOWN_OPTION; +#endif break; #ifndef CURL_DISABLE_HTTP |