Blob Blame History Raw
From 88c5fb27646b3b3c130dda716be3ff257e3ef210 Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat, 1 Feb 2014 20:24:40 +0100
Subject: [PATCH 1/4] tolerate servers that included the SUPPORTED ECC
 extension.

This is an extension that is defined to be sent by the client but there
are servers that include it as well. Most other implementations tolerate
this behavior so we do.

Conflicts:
	lib/ext/ecc.c
---
 lib/ext/ecc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/ext/ecc.c b/lib/ext/ecc.c
index 8f9eddb..814f6d8 100644
--- a/lib/ext/ecc.c
+++ b/lib/ext/ecc.c
@@ -92,7 +92,8 @@ _gnutls_supported_ecc_recv_params (gnutls_session_t session,
   if (session->security_parameters.entity == GNUTLS_CLIENT)
     {
       /* A client shouldn't receive this extension */
-      return gnutls_assert_val(GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION);
+	_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 
-- 
1.8.5.3