Hi,
Cheers first off for a great client.
I've one minor issue in that some FTP servers (seems to mostly be
drftpd):
---> LIST
<--- 150 File status okay; about to open data connection.
**** SSL_connect: sslv3 alert unexpected message
---- Closing data socket
<--- 425 Unexpected end of handshake data
I've attached a diff with the change I made which has worked for the servers
I had issues for, which forces lftp to connect with SSLv3. I don't think this
is ideal as I expect I'm then preventing myself connecting to any
servers that only support SSLv2 (I'm no ssl expert), please could a general
and/or site setting be added to set the ssl version?
Cheers,
Matt
--- lftp-3.7.9/src/lftp_ssl.cc 2008-11-25 11:32:17.000000000 +0000
+++ /root/lftp_ssl.cc 2009-03-25 13:28:11.248588171 +0000
@@ -745,7 +745,7 @@
X509_set_default_verify_paths(ssl_ctx->cert);
#else
SSLeay_add_ssl_algorithms();
- ssl_ctx=SSL_CTX_new(SSLv23_client_method());
+ ssl_ctx=SSL_CTX_new(SSLv3_client_method());
SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL);
SSL_CTX_set_verify(ssl_ctx,SSL_VERIFY_PEER,lftp_ssl_openssl::verify_callback);
// SSL_CTX_set_default_passwd_cb(ssl_ctx,lftp_ssl_passwd_callback);