summaryrefslogtreecommitdiffstats
path: root/ssl/s23_clnt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-09-21 13:40:51 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-09-21 13:40:51 +0000
commit3bd1690bfb59b014fafa93b22e737e50c7db4b5b (patch)
treeb6f6f678926db1e809cdafa054341af909b80095 /ssl/s23_clnt.c
parent29f4b05954073aece823784f7309d8778bff2aa7 (diff)
Fixes from HEAD.
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r--ssl/s23_clnt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c
index 146e1e17c1..a596e7b2ec 100644
--- a/ssl/s23_clnt.c
+++ b/ssl/s23_clnt.c
@@ -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)