]> granicus.if.org Git - curl/commitdiff
url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined
authorJay Satiro <raysatiro@yahoo.com>
Thu, 26 Mar 2015 06:31:35 +0000 (02:31 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 27 Mar 2015 08:31:30 +0000 (09:31 +0100)
lib/url.c

index e7d13d2d8fc8020f4603ff573817d193e0530e23..018bb88761c39710efbe1ee033e8c44d55ad7572 100644 (file)
--- 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