mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:27:23 +03:00
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
This commit is contained in:
parent
11e131c9f9
commit
b0ccd24a72
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue