Don't use SSLv2 compatible client hello if we don't tolerate legacy renegotiation

This commit is contained in:
Dr. Stephen Henson 2009-11-18 14:45:48 +00:00
parent 64abf5e657
commit 4d09323a63

View File

@ -305,6 +305,8 @@ static int ssl23_client_hello(SSL *s)
ssl2_compat = 0;
if (s->tlsext_status_type != -1)
ssl2_compat = 0;
if (!(s->ctx->options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION))
ssl2_compat = 0;
#ifdef TLSEXT_TYPE_opaque_prf_input
if (s->ctx->tlsext_opaque_prf_input_callback != 0 || s->tlsext_opaque_prf_input != NULL)