Fixes from HEAD.

This commit is contained in:
Dr. Stephen Henson
2007-09-21 13:40:51 +00:00
parent 29f4b05954
commit 3bd1690bfb
3 changed files with 12 additions and 2 deletions

View File

@@ -223,6 +223,15 @@ static int ssl23_client_hello(SSL *s)
{
version = SSL2_VERSION;
}
#ifndef OPENSSL_NO_TLSEXT
if (version != SSL2_VERSION)
{
/* have to disable SSL 2.0 compatibility if we need TLS extensions */
if (s->tlsext_hostname != NULL)
ssl2_compat = 0;
}
#endif
buf=(unsigned char *)s->init_buf->data;
if (s->state == SSL23_ST_CW_CLNT_HELLO_A)