Package: w3m
Version: 0.5.2-2.1ss1
Severity: wishlist
Tags: patch


I've done a small patch (3 added code lines) to add TLS SNI (Server Name Indication) support to w3m, which is needed for name-based virtual hosts using https; have been running it for several weeks now with no more problems than before. As upstream seems dead (reaction on neither the SourceForge tracker nor the mailing list), it would be great if at least Debian would incorporate it (in unstable or experimental).

-- System Information:
Debian Release: 5.0
    APT prefers stable
    APT policy: (990, 'stable'), (500, 'stable'), (10, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages w3m depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries ii libgc1c2 1:6.8-1.1 conservative garbage collector for ii libgpm2 1.20.4-3.1 General Purpose Mouse - shared lib ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
ii  libssl0.9.8            0.9.8g-15+lenny1  SSL shared libraries
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages w3m recommends:
ii  ca-certificates               20080809   Common CA certificates

Versions of packages w3m suggests:
ii  man-db                      2.5.2-4      on-line manual pager
ii menu 2.1.41 generates programs menu for all me
pn  migemo                      <none>       (no description available)
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
pn  w3m-el                      <none>       (no description available)
ii w3m-img 0.5.2-2.1ss1 inline image extension support uti

-- no debconf information

CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/
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) {

Attachment: signature.asc
Description: Digital signature

Reply via email to