Commit 488102fc authored by Jay Satiro's avatar Jay Satiro Committed by Daniel Stenberg
Browse files

url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined

parent 559e2cc9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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