mirror of
https://github.com/curl/curl.git
synced 2026-06-22 19:45:40 +03:00
url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined
This commit is contained in:
parent
559e2cc921
commit
488102fc17
1 changed files with 4 additions and 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue