summaryrefslogtreecommitdiffstats
path: root/source/n/openssl/openssl.no-extssl.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/openssl/openssl.no-extssl.diff')
-rw-r--r--source/n/openssl/openssl.no-extssl.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/n/openssl/openssl.no-extssl.diff b/source/n/openssl/openssl.no-extssl.diff
new file mode 100644
index 000000000..de00d0c77
--- /dev/null
+++ b/source/n/openssl/openssl.no-extssl.diff
@@ -0,0 +1,27 @@
+diff -up openssl-0.9.8g/ssl/t1_lib.c.no-extssl openssl-0.9.8g/ssl/t1_lib.c
+--- openssl-0.9.8g/ssl/t1_lib.c.no-extssl 2007-10-19 09:44:10.000000000 +0200
++++ openssl-0.9.8g/ssl/t1_lib.c 2008-08-10 21:42:11.000000000 +0200
+@@ -132,6 +132,11 @@ unsigned char *ssl_add_clienthello_tlsex
+ int extdatalen=0;
+ unsigned char *ret = p;
+
++ if (s->client_version != TLS1_VERSION && s->client_version != DTLS1_VERSION)
++ {
++ return ret;
++ }
++
+ ret+=2;
+
+ if (ret>=limit) return NULL; /* this really never occurs, but ... */
+@@ -202,6 +207,11 @@ unsigned char *ssl_add_serverhello_tlsex
+ int extdatalen=0;
+ unsigned char *ret = p;
+
++ if (s->version != TLS1_VERSION && s->version != DTLS1_VERSION)
++ {
++ return ret;
++ }
++
+ ret+=2;
+ if (ret>=limit) return NULL; /* this really never occurs, but ... */
+