On Wed, Aug 02, 2006 at 06:29:55PM +0200, Dag Wieers wrote:
> ls: Fatal error: SSL connect: error:0D0680A8:asn1 encoding
> routines:ASN1_CHECK_TLEN:wrong tag
>
> If we disable ftp:ssl-allow, then it works. Of course not a big problem
> unless you've used a non-ssl ftp client and everything works fine, but
> lftp (by default) does not.
>
> Would it be possible to, if lftp fails due to AUTH TLS (or the server
> responds in an odd way, what we expect here), to gracefully switch to non
> SSL behaviour ?
Please try this patch.
--
Alexander. | http://www.yars.free.net/~lav/
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.393
diff -u -p -r1.393 ftpclass.cc
--- ftpclass.cc 6 Jul 2006 13:52:01 -0000 1.393
+++ ftpclass.cc 4 Aug 2006 05:50:36 -0000
@@ -3056,7 +3056,12 @@ int Ftp::FlushSendQueue(bool all)
{
DebugPrint("**** ",conn->control_send->ErrorText(),0);
if(conn->control_send->ErrorFatal())
- SetError(FATAL,conn->control_send->ErrorText());
+ {
+ if(conn->ssl_is_activated() && !ftps &&
!QueryBool("ssl-force",hostname))
+ ResMgr::Set("ftp:ssl-allow",hostname,"no");
+ else
+ SetError(FATAL,conn->control_send->ErrorText());
+ }
DisconnectNow();
return MOVED;
}