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.
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)
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp