]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tolerate servers that included the SUPPORTED ECC extension.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 1 Feb 2014 19:24:40 +0000 (20:24 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 1 Feb 2014 19:29:07 +0000 (20:29 +0100)
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

index 8f9eddbae0c04685d706f05b642c9196c1fd95ec..814f6d8170f28e3ce92574ffde8fa98e5a2be3b9 100644 (file)
@@ -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