diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-02-01 20:24:40 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-02-01 20:29:07 +0100 |
commit | 88c5fb27646b3b3c130dda716be3ff257e3ef210 (patch) | |
tree | 841031105bc69d0bdc09d03948e1284d39f7b086 | |
parent | 924759937369d812f8dd818c6ade225dac7cf416 (diff) | |
download | gnutls-88c5fb27646b3b3c130dda716be3ff257e3ef210.tar.gz |
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
-rw-r--r-- | lib/ext/ecc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ext/ecc.c b/lib/ext/ecc.c index 8f9eddbae0..814f6d8170 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 |