[Openvas-commits] r12083 - in trunk/openvas-libraries: . misc

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Nov 10 08:36:00 CET 2011


Author: mwiegand
Date: 2011-11-10 08:35:59 +0100 (Thu, 10 Nov 2011)
New Revision: 12083

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/misc/network.c
Log:
* misc/network.c (open_SSL_connection): Call
  gnutls_transport_set_lowat only for gnutls < 2.12.0 since it is
  deprecated in newer versions. Patch suggested by Stephan Kleine.


Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2011-11-10 07:04:44 UTC (rev 12082)
+++ trunk/openvas-libraries/ChangeLog	2011-11-10 07:35:59 UTC (rev 12083)
@@ -1,3 +1,9 @@
+2011-11-10  Michael Wiegand <michael.wiegand at greenbone.net>
+
+	* misc/network.c (open_SSL_connection): Call
+	gnutls_transport_set_lowat only for gnutls < 2.12.0 since it is
+	deprecated in newer versions. Patch suggested by Stephan Kleine.
+
 2011-11-07  Michael Wiegand <michael.wiegand at greenbone.net>
 
 	* nasl/smb_crypt.h: Ensure that the license text contains the correct

Modified: trunk/openvas-libraries/misc/network.c
===================================================================
--- trunk/openvas-libraries/misc/network.c	2011-11-10 07:04:44 UTC (rev 12082)
+++ trunk/openvas-libraries/misc/network.c	2011-11-10 07:35:59 UTC (rev 12083)
@@ -825,8 +825,10 @@
     }
 
   unblock_socket (fp->fd);
-  /* for non-blocking sockets, gnutls requires a 0 lowat value */
+  /* for non-blocking sockets, gnutls < 2.12.0 requires a 0 lowat value */
+#if GNUTLS_VERSION_NUMBER < 0x020c00
   gnutls_transport_set_lowat (fp->tls_session, 0);
+#endif
 
   gnutls_transport_set_ptr (fp->tls_session,
                             (gnutls_transport_ptr_t) GSIZE_TO_POINTER (fp->fd));



More information about the Openvas-commits mailing list