[pure-ftpd] Issue with CCC

Cyril Pascal <[email protected]> Thu, 4 Feb 2021 11:06:08 +0100
Newsgroups gmane.network.pureftpd.user
Message-ID <CA+KvQ5_YfVEEa-zUSPHZnH8iCuuMDXbkgxy1N_EF77K+uxbiWA@mail.gmail.com>
--0000000000001d2e0b05ba7fdee3
Content-Type: text/plain; charset="UTF-8"

Hello,

I have not found a way to add this issue to github repository. Then, I ask
my question on this mailing list.

I tried to use lftp as a client with CCC configured on debian 10.
The server used is pure-ftpd. I tried with the official deb package and
also tried with the last version of pure-ftpd compiled manually. In both
cases, the result is the same: the server logs out and the client fails.

This operation works well with proftpd server, so I guess this is a
pure-ftpd issue, and not a client configuration mistake. For your
information, my client configuration is:

set cache:enable false
set ssl:check-hostname true
set ssl:verify-certificate false
set net:connection-limit 10
set ftp:ssl-force false
set ftp:passive-mode true
set cmd:fail-exit true
set ftp:ssl-use-ccc 1
open 127.0.0.1
user testftp testftp
mput ~/ccc/test.bin
close

I tried to modify the code in order to reuse the SSL session: in the "ccc"
case of the ftp_parser.c file: I removed the "goto wayout" instruction.
Sometimes, it works, but often, the read function in the sfgets method
returns 0 and the server logs out.

I'd like to know which client has been used to test the CCC feature, and
what's wrong with my approach.

Thank you for your help.

-- 
Cordialement/Best Regards,
*Cyril Pascal*

--0000000000001d2e0b05ba7fdee3--