]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update from 1.0.0-stable.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 28 Apr 2009 22:02:16 +0000 (22:02 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 28 Apr 2009 22:02:16 +0000 (22:02 +0000)
ssl/t1_lib.c

index 9ce726996d9ddccd2851a14974ef41bfbabf8678..c813729f3348c63eb54e6fdaeb34be0a80b38713 100644 (file)
@@ -133,6 +133,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 ... */
@@ -251,6 +255,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 ... */