url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined
This commit is contained in:
committed by
Daniel Stenberg
parent
559e2cc921
commit
488102fc17
@@ -892,7 +892,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||||||
* Set explicit SSL version to try to connect with, as some SSL
|
* Set explicit SSL version to try to connect with, as some SSL
|
||||||
* implementations are lame.
|
* implementations are lame.
|
||||||
*/
|
*/
|
||||||
|
#ifdef USE_SSL
|
||||||
data->set.ssl.version = va_arg(param, long);
|
data->set.ssl.version = va_arg(param, long);
|
||||||
|
#else
|
||||||
|
result = CURLE_UNKNOWN_OPTION;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_HTTP
|
#ifndef CURL_DISABLE_HTTP
|
||||||
|
|||||||
Reference in New Issue
Block a user