diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:38:07 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:38:07 +0000 |
commit | fa32682a5bfdd176e582cf6128a3c40c1c0cd189 (patch) | |
tree | e53c179239dcfb65582c3bb844896b678c9f61cd /debian/patches/160_tls-sni.patch | |
parent | Releasing debian version 0.5.2-6 (diff) | |
download | w3m-fa32682a5bfdd176e582cf6128a3c40c1c0cd189.tar.gz w3m-fa32682a5bfdd176e582cf6128a3c40c1c0cd189.zip |
Releasing debian version 0.5.2-7debian/0.5.2-7
Diffstat (limited to '')
-rw-r--r-- | debian/patches/160_tls-sni.patch | 18 |
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) { |