using_ecc doesn't just apply to TLSv1

This commit is contained in:
Dr. Stephen Henson 2010-11-25 11:51:31 +00:00
parent fa71cc7bce
commit 290be870d6

View File

@ -1336,7 +1336,7 @@ int ssl_prepare_clienthello_tlsext(SSL *s)
break;
}
}
using_ecc = using_ecc && (s->version == TLS1_VERSION);
using_ecc = using_ecc && (s->version >= TLS1_VERSION);
if (using_ecc)
{
if (s->tlsext_ecpointformatlist != NULL) OPENSSL_free(s->tlsext_ecpointformatlist);