cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Implicit SSL connections doesn't works

From: Abel Alonso <abelalon_at_gmail.com>
Date: Wed, 5 Sep 2007 11:02:39 +0200

Hi again!

I think that "copy paste" betrayed me one more time... The url used both in
ftpsSSL.cpp and ftpsTLS.cpp should be ftp://localhost/, not
ftps://localhost/

Kind regards

2007/9/5, Abel Alonso <abelalon_at_gmail.com>:
>
>
> > That was totally broken formatting. Please attach it instead so perhaps
> > your
> > mail client won't butcher it.
>
>
> I apologize for this issue I attach the ftp.patch file with the exit of
> execute an diff -u. I use the snapshot of the July 31th (7.16.5 version).
>
> In what way doesn't it work? Isn't that kind of approach still the better
> > one
> > to make the FTPS code as generic as possible ?
>
>
>
> I attach three cpp files with the code I use to connect to a server using
> ftp over SSL. I describe you the result achieved with each execution.
>
> The ftpsImpl.cpp file contents the code I use for implicit ftps
> connections. This code only works with my patch. Without my patch it doesn't
> work and throw me an CURLE_SSL_CONNECT_ERROR. I try to connect to an
> Filezilla server I've upload on my localhost and I also attach the exit it
> generate for the following tests:
>
> -FTPS implicit with my patch (mypatch.txt). It works well.
> -FTPS implicit with July 31th curl snapshot (July.txt). It doesn't work.
> -FTPS implicit with September 3rd (September.txt). It doesn't work.
>
> If to the ftpsImpl.cpp code I add the following line:
> curl_easy_setopt( curl, CURLOPT_FTP_SSL , CURLFTPSSL_ALL );
>
> I get the following:
>
> -FTPS implicit with my patch (mypatchOPT.txt). It doesn't work.
> -FTPS implicit with July 31th curl snapshot (JulyOPT.txt). It doesn't
> work.
> -FTPS implicit with September 3rd (SeptemberOPT.txt). It doesn't work.
>
>
> The ftpsSSL.cpp is the code I use to make explicit ftps connections over
> SSL. It works with all curl versions I commented below. ftpsTLS.cpp is
> the file which contents the code I use to make ftps connections over TLS and
> it also works without problems.
>
> Kind regards,
>
>
>
>
>
>
>
Received on 2007-09-05