[lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Alexander V. Lukyanov
lftp-4.5.6 and 4.6.0 have been released. Changes:

Version 4.6.0:

* new torrent --share option.
* new setting mirror:require-source.
* new settings xfer:use-temp-file and xfer:temp-file-name.
* ftp: wait for QUIT reply before closing control socket.
+ fixes from 4.5.6

Version 4.5.6 (stable - bug fixes only):

* display valid IDN in URLs without percent encoding.
* ftp: shutdown SSL connection before closing control socket.
* ftp: avoid duplication of PROT command.
* fixed debug -o to append to the log file.
* fixed compilation without SSL.
* http: don't uncompress files ending with .gz, .Z or .tgz
* http: fixed inflation of some files.
* minor fixes in torrent protocol.

Get them from http://lftp.yar.ru/get.html or your favorite mirror.
(4.5.6 ia available from http://lftp.yar.ru/ftp/)
Binaries for Fedora 20 are also available.

Try also torrent download (just for fun):
   
magnet:?xt=urn:btih:1036E2211338395ED405DFD2E1A7C0E250B84787xl=2626600dn=lftp-4.6.0.tar.gz
   
magnet:?xt=urn:btih:C3ACE41CC267CA4CB61788E26CB192247DC05200xl=2618661dn=lftp-4.5.6.tar.gz
   
magnet:?xt=urn:btih:0BFE6089110E19607C3B6A53F7AF1F1F4E44D442xl=671392dn=lftp-4.6.0-1.x86_64.rpm
   
magnet:?xt=urn:btih:FA79A16118782CE5818B742E1209686B8BA76083xl=667412dn=lftp-4.5.6-1.x86_64.rpm

-- 
   Alexander.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Juan Simón
Error to compile lftp-4.6 on Ubuntu 14.04 64 bits with './configure
--with-modules --without-gnutls --without-openssl':
Making all in m4
Making all in doc
Making all in lib
Making all in src
ftpclass.cc: In member function 'virtual int Ftp::Do()':
ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
   || expect-Has(Expect::PROT))
  ^
make[1]: *** [ftpclass.lo] Error 1
make[1]: *** Se espera a que terminen otras tareas
make: *** [all-recursive] Error 1


2014-10-14 13:30 GMT+02:00 Alexander V. Lukyanov lavv...@gmail.com:

 lftp-4.5.6 and 4.6.0 have been released. Changes:

 Version 4.6.0:

 * new torrent --share option.
 * new setting mirror:require-source.
 * new settings xfer:use-temp-file and xfer:temp-file-name.
 * ftp: wait for QUIT reply before closing control socket.
 + fixes from 4.5.6

 Version 4.5.6 (stable - bug fixes only):

 * display valid IDN in URLs without percent encoding.
 * ftp: shutdown SSL connection before closing control socket.
 * ftp: avoid duplication of PROT command.
 * fixed debug -o to append to the log file.
 * fixed compilation without SSL.
 * http: don't uncompress files ending with .gz, .Z or .tgz
 * http: fixed inflation of some files.
 * minor fixes in torrent protocol.

 Get them from http://lftp.yar.ru/get.html or your favorite mirror.
 (4.5.6 ia available from http://lftp.yar.ru/ftp/)
 Binaries for Fedora 20 are also available.

 Try also torrent download (just for fun):

  
 magnet:?xt=urn:btih:1036E2211338395ED405DFD2E1A7C0E250B84787xl=2626600dn=lftp-4.6.0.tar.gz

  
 magnet:?xt=urn:btih:C3ACE41CC267CA4CB61788E26CB192247DC05200xl=2618661dn=lftp-4.5.6.tar.gz

  
 magnet:?xt=urn:btih:0BFE6089110E19607C3B6A53F7AF1F1F4E44D442xl=671392dn=lftp-4.6.0-1.x86_64.rpm

  
 magnet:?xt=urn:btih:FA79A16118782CE5818B742E1209686B8BA76083xl=667412dn=lftp-4.5.6-1.x86_64.rpm

 --
Alexander.
 ___
 lftp mailing list
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp

___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Juan Simón
Without '--with-modules' fails too.

And without any flag in './configure' fails compilation too in another
point:
Making all in m4
Making all in doc
Making all in lib
Making all in src
lftp_ssl.cc: In member function 'int lftp_ssl_gnutls::read(char*, int)':
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)
  ^
make[1]: *** [lftp_ssl.lo] Error 1
make[1]: *** Se espera a que terminen otras tareas
make: *** [all-recursive] Error 1

This 4.6.0 version is compilable in some scenario?


2014-10-14 13:57 GMT+02:00 Juan Simón deced...@gmail.com:

 Error to compile lftp-4.6 on Ubuntu 14.04 64 bits with './configure
 --with-modules --without-gnutls --without-openssl':
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In member function 'virtual int Ftp::Do()':
 ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
|| expect-Has(Expect::PROT))
   ^
 make[1]: *** [ftpclass.lo] Error 1
 make[1]: *** Se espera a que terminen otras tareas
 make: *** [all-recursive] Error 1


 2014-10-14 13:30 GMT+02:00 Alexander V. Lukyanov lavv...@gmail.com:

 lftp-4.5.6 and 4.6.0 have been released. Changes:

 Version 4.6.0:

 * new torrent --share option.
 * new setting mirror:require-source.
 * new settings xfer:use-temp-file and xfer:temp-file-name.
 * ftp: wait for QUIT reply before closing control socket.
 + fixes from 4.5.6

 Version 4.5.6 (stable - bug fixes only):

 * display valid IDN in URLs without percent encoding.
 * ftp: shutdown SSL connection before closing control socket.
 * ftp: avoid duplication of PROT command.
 * fixed debug -o to append to the log file.
 * fixed compilation without SSL.
 * http: don't uncompress files ending with .gz, .Z or .tgz
 * http: fixed inflation of some files.
 * minor fixes in torrent protocol.

 Get them from http://lftp.yar.ru/get.html or your favorite mirror.
 (4.5.6 ia available from http://lftp.yar.ru/ftp/)
 Binaries for Fedora 20 are also available.

 Try also torrent download (just for fun):

  
 magnet:?xt=urn:btih:1036E2211338395ED405DFD2E1A7C0E250B84787xl=2626600dn=lftp-4.6.0.tar.gz

  
 magnet:?xt=urn:btih:C3ACE41CC267CA4CB61788E26CB192247DC05200xl=2618661dn=lftp-4.5.6.tar.gz

  
 magnet:?xt=urn:btih:0BFE6089110E19607C3B6A53F7AF1F1F4E44D442xl=671392dn=lftp-4.6.0-1.x86_64.rpm

  
 magnet:?xt=urn:btih:FA79A16118782CE5818B742E1209686B8BA76083xl=667412dn=lftp-4.5.6-1.x86_64.rpm

 --
Alexander.
 ___
 lftp mailing list
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp



___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Jeroen Roovers
On Tue, 14 Oct 2014 14:14:26 +0200
Juan Simón deced...@gmail.com wrote:

 Without '--with-modules' fails too.
 
 And without any flag in './configure' fails compilation too in another
 point:
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 lftp_ssl.cc: In member function 'int lftp_ssl_gnutls::read(char*,
 int)': 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)

https://github.com/lavv17/lftp/pull/97


 jer

___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Juan Simón
The 4.5.6 has the same error:
$ ./configure --with-modules --without-gnutls --without-openssl


$ make
Making all in m4
Making all in doc
Making all in lib
Making all in src
ftpclass.cc: In member function 'virtual int Ftp::Do()':
ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
   || expect-Has(Expect::PROT))
  ^
make[1]: *** [ftpclass.lo] Error 1
make[1]: *** Se espera a que terminen otras tareas
make: *** [all-recursive] Error 1


2014-10-14 15:54 GMT+02:00 Jeroen Roovers j...@gentoo.org:

 On Tue, 14 Oct 2014 14:14:26 +0200
 Juan Simón deced...@gmail.com wrote:

  Without '--with-modules' fails too.
 
  And without any flag in './configure' fails compilation too in another
  point:
  Making all in m4
  Making all in doc
  Making all in lib
  Making all in src
  lftp_ssl.cc: In member function 'int lftp_ssl_gnutls::read(char*,
  int)': 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)

 https://github.com/lavv17/lftp/pull/97


  jer

___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Juan Simón
Please, can anyone compile any of these versions? Is this a dependency
problem or syntax error?

I try to compile the 4.5.5 version again (I have uninstalled it) and now I
can't:
$ make
Making all in m4
Making all in doc
Making all in lib
Making all in src
ftpclass.cc: In destructor 'Ftp::Connection::~Connection()':
ftpclass.cc:1074:15: error: lvalue required as left operand of assignment
control_ssl=0; // ssl should be freed after send/recv
   ^
make[1]: *** [ftpclass.lo] Error 1
make[1]: *** Se espera a que terminen otras tareas
make: *** [all-recursive] Error 1

If it's a dependency problem, why does configure say anything?

Now I can't use lftp...

2014-10-14 13:57 GMT+02:00 Juan Simón deced...@gmail.com:

 Error to compile lftp-4.6 on Ubuntu 14.04 64 bits with './configure
 --with-modules --without-gnutls --without-openssl':
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In member function 'virtual int Ftp::Do()':
 ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
|| expect-Has(Expect::PROT))
   ^
 make[1]: *** [ftpclass.lo] Error 1
 make[1]: *** Se espera a que terminen otras tareas
 make: *** [all-recursive] Error 1


 2014-10-14 13:30 GMT+02:00 Alexander V. Lukyanov lavv...@gmail.com:

 lftp-4.5.6 and 4.6.0 have been released. Changes:

 Version 4.6.0:

 * new torrent --share option.
 * new setting mirror:require-source.
 * new settings xfer:use-temp-file and xfer:temp-file-name.
 * ftp: wait for QUIT reply before closing control socket.
 + fixes from 4.5.6

 Version 4.5.6 (stable - bug fixes only):

 * display valid IDN in URLs without percent encoding.
 * ftp: shutdown SSL connection before closing control socket.
 * ftp: avoid duplication of PROT command.
 * fixed debug -o to append to the log file.
 * fixed compilation without SSL.
 * http: don't uncompress files ending with .gz, .Z or .tgz
 * http: fixed inflation of some files.
 * minor fixes in torrent protocol.

 Get them from http://lftp.yar.ru/get.html or your favorite mirror.
 (4.5.6 ia available from http://lftp.yar.ru/ftp/)
 Binaries for Fedora 20 are also available.

 Try also torrent download (just for fun):

  
 magnet:?xt=urn:btih:1036E2211338395ED405DFD2E1A7C0E250B84787xl=2626600dn=lftp-4.6.0.tar.gz

  
 magnet:?xt=urn:btih:C3ACE41CC267CA4CB61788E26CB192247DC05200xl=2618661dn=lftp-4.5.6.tar.gz

  
 magnet:?xt=urn:btih:0BFE6089110E19607C3B6A53F7AF1F1F4E44D442xl=671392dn=lftp-4.6.0-1.x86_64.rpm

  
 magnet:?xt=urn:btih:FA79A16118782CE5818B742E1209686B8BA76083xl=667412dn=lftp-4.5.6-1.x86_64.rpm

 --
Alexander.
 ___
 lftp mailing list
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp



___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Juan Simón
I have compiled 4.6.0 version without any flags (CFLAGS,...) and without
parallel compilation and with complete output:
/bin/bash ../libtool --silent  --tag=CXX   --mode=compile g++
-DHAVE_CONFIG_H -I. -I../lib  -I../lib -I../trio -O2 -Wall
-Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
-fno-implement-inlines -MT ftpclass.lo -MD -MP -MF .deps/ftpclass.Tpo -c -o
ftpclass.lo ftpclass.cc
ftpclass.cc: In member function 'virtual int Ftp::Do()':
ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
   || expect-Has(Expect::PROT))
  ^
make[1]: *** [ftpclass.lo] Error 1

The git version has the same error.

I have compiled the 4.6.0 version on Gentoo Linux and same error.

2014-10-14 21:47 GMT+02:00 Juan Simón deced...@gmail.com:

 Please, can anyone compile any of these versions? Is this a dependency
 problem or syntax error?

 I try to compile the 4.5.5 version again (I have uninstalled it) and now I
 can't:
 $ make
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In destructor 'Ftp::Connection::~Connection()':
 ftpclass.cc:1074:15: error: lvalue required as left operand of assignment
 control_ssl=0; // ssl should be freed after send/recv
^
 make[1]: *** [ftpclass.lo] Error 1
 make[1]: *** Se espera a que terminen otras tareas
 make: *** [all-recursive] Error 1

 If it's a dependency problem, why does configure say anything?

 Now I can't use lftp...

 2014-10-14 13:57 GMT+02:00 Juan Simón deced...@gmail.com:

 Error to compile lftp-4.6 on Ubuntu 14.04 64 bits with './configure
 --with-modules --without-gnutls --without-openssl':
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In member function 'virtual int Ftp::Do()':
 ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
|| expect-Has(Expect::PROT))
   ^
 make[1]: *** [ftpclass.lo] Error 1
 make[1]: *** Se espera a que terminen otras tareas
 make: *** [all-recursive] Error 1


 2014-10-14 13:30 GMT+02:00 Alexander V. Lukyanov lavv...@gmail.com:

 lftp-4.5.6 and 4.6.0 have been released. Changes:

 Version 4.6.0:

 * new torrent --share option.
 * new setting mirror:require-source.
 * new settings xfer:use-temp-file and xfer:temp-file-name.
 * ftp: wait for QUIT reply before closing control socket.
 + fixes from 4.5.6

 Version 4.5.6 (stable - bug fixes only):

 * display valid IDN in URLs without percent encoding.
 * ftp: shutdown SSL connection before closing control socket.
 * ftp: avoid duplication of PROT command.
 * fixed debug -o to append to the log file.
 * fixed compilation without SSL.
 * http: don't uncompress files ending with .gz, .Z or .tgz
 * http: fixed inflation of some files.
 * minor fixes in torrent protocol.

 Get them from http://lftp.yar.ru/get.html or your favorite mirror.
 (4.5.6 ia available from http://lftp.yar.ru/ftp/)
 Binaries for Fedora 20 are also available.

 Try also torrent download (just for fun):

  
 magnet:?xt=urn:btih:1036E2211338395ED405DFD2E1A7C0E250B84787xl=2626600dn=lftp-4.6.0.tar.gz

  
 magnet:?xt=urn:btih:C3ACE41CC267CA4CB61788E26CB192247DC05200xl=2618661dn=lftp-4.5.6.tar.gz

  
 magnet:?xt=urn:btih:0BFE6089110E19607C3B6A53F7AF1F1F4E44D442xl=671392dn=lftp-4.6.0-1.x86_64.rpm

  
 magnet:?xt=urn:btih:FA79A16118782CE5818B742E1209686B8BA76083xl=667412dn=lftp-4.5.6-1.x86_64.rpm

 --
Alexander.
 ___
 lftp mailing list
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp




___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Juan Simón
I have found the origin of this bug:
https://github.com/lavv17/lftp/issues/98#issuecomment-59123679



2014-10-14 23:34 GMT+02:00 Juan Simón deced...@gmail.com:

 I have compiled 4.6.0 version without any flags (CFLAGS,...) and without
 parallel compilation and with complete output:
 /bin/bash ../libtool --silent  --tag=CXX   --mode=compile g++
 -DHAVE_CONFIG_H -I. -I../lib  -I../lib -I../trio -O2 -Wall
 -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
 -fno-implement-inlines -MT ftpclass.lo -MD -MP -MF .deps/ftpclass.Tpo -c -o
 ftpclass.lo ftpclass.cc
 ftpclass.cc: In member function 'virtual int Ftp::Do()':
 ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
|| expect-Has(Expect::PROT))
   ^
 make[1]: *** [ftpclass.lo] Error 1

 The git version has the same error.

 I have compiled the 4.6.0 version on Gentoo Linux and same error.

 2014-10-14 21:47 GMT+02:00 Juan Simón deced...@gmail.com:

 Please, can anyone compile any of these versions? Is this a dependency
 problem or syntax error?

 I try to compile the 4.5.5 version again (I have uninstalled it) and now
 I can't:
 $ make
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In destructor 'Ftp::Connection::~Connection()':
 ftpclass.cc:1074:15: error: lvalue required as left operand of assignment
 control_ssl=0; // ssl should be freed after send/recv
^
 make[1]: *** [ftpclass.lo] Error 1
 make[1]: *** Se espera a que terminen otras tareas
 make: *** [all-recursive] Error 1

 If it's a dependency problem, why does configure say anything?

 Now I can't use lftp...

 2014-10-14 13:57 GMT+02:00 Juan Simón deced...@gmail.com:

 Error to compile lftp-4.6 on Ubuntu 14.04 64 bits with './configure
 --with-modules --without-gnutls --without-openssl':
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In member function 'virtual int Ftp::Do()':
 ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
|| expect-Has(Expect::PROT))
   ^
 make[1]: *** [ftpclass.lo] Error 1
 make[1]: *** Se espera a que terminen otras tareas
 make: *** [all-recursive] Error 1


 2014-10-14 13:30 GMT+02:00 Alexander V. Lukyanov lavv...@gmail.com:

 lftp-4.5.6 and 4.6.0 have been released. Changes:

 Version 4.6.0:

 * new torrent --share option.
 * new setting mirror:require-source.
 * new settings xfer:use-temp-file and xfer:temp-file-name.
 * ftp: wait for QUIT reply before closing control socket.
 + fixes from 4.5.6

 Version 4.5.6 (stable - bug fixes only):

 * display valid IDN in URLs without percent encoding.
 * ftp: shutdown SSL connection before closing control socket.
 * ftp: avoid duplication of PROT command.
 * fixed debug -o to append to the log file.
 * fixed compilation without SSL.
 * http: don't uncompress files ending with .gz, .Z or .tgz
 * http: fixed inflation of some files.
 * minor fixes in torrent protocol.

 Get them from http://lftp.yar.ru/get.html or your favorite mirror.
 (4.5.6 ia available from http://lftp.yar.ru/ftp/)
 Binaries for Fedora 20 are also available.

 Try also torrent download (just for fun):

  
 magnet:?xt=urn:btih:1036E2211338395ED405DFD2E1A7C0E250B84787xl=2626600dn=lftp-4.6.0.tar.gz

  
 magnet:?xt=urn:btih:C3ACE41CC267CA4CB61788E26CB192247DC05200xl=2618661dn=lftp-4.5.6.tar.gz

  
 magnet:?xt=urn:btih:0BFE6089110E19607C3B6A53F7AF1F1F4E44D442xl=671392dn=lftp-4.6.0-1.x86_64.rpm

  
 magnet:?xt=urn:btih:FA79A16118782CE5818B742E1209686B8BA76083xl=667412dn=lftp-4.5.6-1.x86_64.rpm

 --
Alexander.
 ___
 lftp mailing list
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp





___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Alexander V. Lukyanov
On Tue, Oct 14, 2014 at 01:57:58PM +0200, Juan Simón wrote:
 Error to compile lftp-4.6 on Ubuntu 14.04 64 bits with './configure
 --with-modules --without-gnutls --without-openssl':
 Making all in m4
 Making all in doc
 Making all in lib
 Making all in src
 ftpclass.cc: In member function 'virtual int Ftp::Do()':
 ftpclass.cc:1614:22: error: 'PROT' is not a member of 'Ftp::Expect'
|| expect-Has(Expect::PROT))

My bad. Please see the attached patch.

-- 
   Alexander.
diff --git a/src/ftpclass.cc b/src/ftpclass.cc
index 130704d..bc148bc 100644
--- a/src/ftpclass.cc
+++ b/src/ftpclass.cc
@@ -1610,12 +1610,12 @@ int   Ftp::Do()
 
   if(expect-Has(Expect::FEAT)
   || expect-Has(Expect::OPTS_UTF8)
-  || expect-Has(Expect::LANG)
-  || expect-Has(Expect::PROT))
+  || expect-Has(Expect::LANG))
 goto usual_return;
 
 #if USE_SSL
-  if(expect-Has(Expect::CCC))
+  if(expect-Has(Expect::CCC)
+  || expect-Has(Expect::PROT))
 goto usual_return;
 #endif // USE_SSL
 
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] lftp 4.5.6 (stable) and 4.6.0

2014-10-14 Thread Alexander V. Lukyanov
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