jer         14/10/14 08:56:58

  Added:                lftp-4.6.0-gnutls-2-compat.patch
  Log:
  Fix building against <net-libs/gnutls-3.
  
  (Portage version: 2.2.14_rc1/cvs/Linux i686, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  net-ftp/lftp/files/lftp-4.6.0-gnutls-2-compat.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/lftp/files/lftp-4.6.0-gnutls-2-compat.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/lftp/files/lftp-4.6.0-gnutls-2-compat.patch?rev=1.1&content-type=text/plain

Index: lftp-4.6.0-gnutls-2-compat.patch
===================================================================
--- a/src/lftp_ssl.cc
+++ b/src/lftp_ssl.cc
@@ -560,7 +560,11 @@
    {
       if(res==GNUTLS_E_AGAIN || res==GNUTLS_E_INTERRUPTED)
         return RETRY;
-      else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH || 
res==GNUTLS_E_PREMATURE_TERMINATION)
+      else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH
+#if LFTP_LIBGNUTLS_VERSION_CODE >= 0x030000
+                 || res==GNUTLS_E_PREMATURE_TERMINATION
+#endif /* LFTP_LIBGNUTLS_VERSION_CODE */
+             )
       {
         Log::global->Format(7,"gnutls_record_recv: %s Assuming 
EOF.\n",gnutls_strerror(res));
         return 0;




Reply via email to