cURL / Mailing Lists / curl-library / Single Mail



From: Daniel Stenberg <>
Date: Thu, 11 May 2006 07:18:32 +0200 (CEST)

On Thu, 11 May 2006, David McCreedy wrote:

>> This checks for FTPS and HTTPS, but what happens in the case when SSL is
>> negotiated as part of FTP, using --ftp-ssl? There must be a better way of
>> telling if SSL is in use on a connection or not, or if not, there should
>> be.
> Would a check for "use" work?
> if (data->state.connects[data->state.lastconnect]->ssl[FIRSTSOCKET].use)

Yeps, that's actually the better way

> Also, does PROT_FTPS get set for HTTPS? If not, the code won't be activated
> for HTTPS.

PROT_SSL gets set for both FTPS and HTTPS, which is why my commit only checked
for that. Still, the 'use' method is actually even better.

I just modified the code and committed. Please try.

Thanks Dan!

  Commercial curl and libcurl Technical Support:
Received on 2006-05-11