From: Jay Satiro Date: Thu, 26 Mar 2015 06:31:35 +0000 (-0400) Subject: url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined X-Git-Tag: curl-7_42_0~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=488102fc17f0980e883c6b1d1bea8d86249088c4;p=thirdparty%2Fcurl.git url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined --- diff --git a/lib/url.c b/lib/url.c index e7d13d2d8f..018bb88761 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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