From 5f8f94a661692fb4525763075af919b05f0391fd Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 28 Apr 2009 22:10:54 +0000 Subject: Update from 1.0.0-stable. --- ssl/t1_lib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ssl') diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 3c6907f608..bd849ac593 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -275,6 +275,10 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha int extdatalen=0; unsigned char *ret = p; + /* don't add extensions for SSLv3 */ + if (s->client_version == SSL3_VERSION) + return p; + ret+=2; if (ret>=limit) return NULL; /* this really never occurs, but ... */ @@ -472,6 +476,10 @@ unsigned char *ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned cha int extdatalen=0; unsigned char *ret = p; + /* don't add extensions for SSLv3 */ + if (s->version == SSL3_VERSION) + return p; + ret+=2; if (ret>=limit) return NULL; /* this really never occurs, but ... */ -- cgit v1.2.3