aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/160_tls-sni.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/160_tls-sni.patch')
-rw-r--r--debian/patches/160_tls-sni.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/160_tls-sni.patch b/debian/patches/160_tls-sni.patch
new file mode 100644
index 0000000..0a2e83a
--- /dev/null
+++ b/debian/patches/160_tls-sni.patch
@@ -0,0 +1,18 @@
+Description: Support for TLS SNI (Server Name Indication)
+Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523159#5
+Author: Sascha Silbe <sascha-debian-bugs-w3m-1@silbe.org>
+Bug-Debian: http://bugs.debian.org/523159
+
+diff -ur w3m-0.5.2/url.c w3m-0.5.2-sni/url.c
+--- w3m-0.5.2/url.c 2007-05-23 17:06:06.000000000 +0200
++++ w3m-0.5.2-sni/url.c 2009-03-11 17:44:51.210620186 +0100
+@@ -374,6 +374,9 @@
+ #if SSLEAY_VERSION_NUMBER >= 0x00905100
+ init_PRNG();
+ #endif /* SSLEAY_VERSION_NUMBER >= 0x00905100 */
++#if (SSLEAY_VERSION_NUMBER >= 0x00908070) && !defined(OPENSSL_NO_TLSEXT)
++ SSL_set_tlsext_host_name(handle,hostname);
++#endif /* (SSLEAY_VERSION_NUMBER >= 0x00908070) && !defined(OPENSSL_NO_TLSEXT) */
+ if (SSL_connect(handle) > 0) {
+ Str serv_cert = ssl_get_certificate(handle, hostname);
+ if (serv_cert) {