diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-09-21 13:40:51 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-09-21 13:40:51 +0000 |
commit | 3bd1690bfb59b014fafa93b22e737e50c7db4b5b (patch) | |
tree | b6f6f678926db1e809cdafa054341af909b80095 /ssl/s23_clnt.c | |
parent | 29f4b05954073aece823784f7309d8778bff2aa7 (diff) |
Fixes from HEAD.
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r-- | ssl/s23_clnt.c | 9 |
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) |