From b0ccd24a729294da5f5b58ad595593068415d6df Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Oct 2010 22:33:20 +0200 Subject: [PATCH] Curl_setopt: disallow CURLOPT_USE_SSL without SSL support In order to avoid for example the pingpong protocols to issue STARTTLS (or equivalent) even though there's no SSL support built-in. Reported by: Sune Ahlgren Bug: http://curl.haxx.se/mail/archive-2010-10/0045.html --- lib/url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/url.c b/lib/url.c index 1b65a923f7..b0a348b887 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2166,13 +2166,14 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, data->set.max_filesize = va_arg(param, long); break; +#ifdef USE_SSL case CURLOPT_USE_SSL: /* * Make transfers attempt to use SSL/TLS. */ data->set.ftp_ssl = (curl_usessl)va_arg(param, long); break; - +#endif case CURLOPT_FTPSSLAUTH: /* * Set a specific auth for FTP-SSL transfers.