File gnutls-3.2.10-supported-ecc.patch of Package gnutls.3982

Index: gnutls-3.2.4/lib/ext/ecc.c
===================================================================
--- gnutls-3.2.4.orig/lib/ext/ecc.c
+++ gnutls-3.2.4/lib/ext/ecc.c
@@ -91,8 +91,10 @@ _gnutls_supported_ecc_recv_params (gnutl
 
   if (session->security_parameters.entity == GNUTLS_CLIENT)
     {
-      /* A client shouldn't receive this extension */
-      return gnutls_assert_val(GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION);
+		/* A client shouldn't receive this extension, but of course
+		   there are servers out there that send it. Just ignore it. */
+		_gnutls_debug_log("received SUPPORTED ECC extension on client side!!!\n");
+		return 0;
     }
   else
     { /* SERVER SIDE - we must check if the sent supported ecc type is the right one 
openSUSE Build Service is sponsored by