cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: CURLINFO_LASTSOCKET change

From: Daniel Stenberg <daniel_at_haxx.se>
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: http://haxx.se/curl.html
Received on 2006-05-11

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET