Re: lftp 4.5.6 (stable) and 4.6.0
"Alexander V. Lukyanov" <[email protected]>
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Oct 14, 2014 at 02:14:26PM +0200, Juan Simón wrote: > lftp_ssl.cc:563:62: error: 'GNUTLS_E_PREMATURE_TERMINATION' was not > declared in this scope > else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH || > res==GNUTLS_E_PREMATURE_TERMINATION) Please see this patch. -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp
diff1
(text/plain, 411 B)
diff --git a/src/lftp_ssl.cc b/src/lftp_ssl.cc
index 100b90b..8ef8a8d 100644
--- a/src/lftp_ssl.cc
+++ b/src/lftp_ssl.cc
@@ -547,6 +547,11 @@ int lftp_ssl_gnutls::do_handshake()
return DONE;
}
+
+#ifndef GNUTLS_E_PREMATURE_TERMINATION // for gnutls < 3.0
+# define GNUTLS_E_PREMATURE_TERMINATION GNUTLS_E_UNEXPECTED_PACKET_LENGTH
+#endif
+
int lftp_ssl_gnutls::read(char *buf,int size)
{
if(error)