[mew-dist 29401] stunnel-4.39 への対応

Ryo ONODERA <[email protected]> Tue, 19 Jul 2011 22:41:08 +0900 (JST)
Newsgroups gmane.mail.mew.general.japanese
Message-ID <[email protected]>


githubMew 6.3


pop.gmail.comSSLstunnel
stunnel -versionstunnel 3.XX

stunnel 4.39


?

--- mew-ssl.el.orig	2009-01-21 05:54:58.000000000 +0000
+++ mew-ssl.el
@@ -260,7 +260,8 @@ A local port number can be obtained the 
     (with-temp-buffer
       (call-process mew-prog-ssl nil t nil "-version")
       (goto-char (point-min))
-      (if (looking-at "stunnel 4\\.\\([0-9]+\\)")
+      (re-search-forward "^stunnel " nil t 1)
+      (if (looking-at "4\\.\\([0-9]+\\)")
 	  (progn
 	    (setq mew-ssl-ver 4)
 	    (setq mew-ssl-minor-ver (string-to-number (mew-match-string 1))))


stunnel 4.39stunnel -version

No limit detected for the number of clients
signal_pipe: FD=4 allocated (non-blocking mode)
signal_pipe: FD=5 allocated (non-blocking mode)
stunnel 4.39 on i486--netbsdelf platform
Compiled/running with OpenSSL 1.0.1-stable 05 Jun 2011
Threading:PTHREAD SSL:ENGINE Auth:LIBWRAP Sockets:POLL,IPv6
stunnel 4.39 on i486--netbsdelf platform
Compiled/running with OpenSSL 1.0.1-stable 05 Jun 2011
Threading:PTHREAD SSL:ENGINE Auth:LIBWRAP Sockets:POLL,IPv6

Global option defaults
debug           = daemon.notice
pid             = /var/run/stunnel.pid
RNDbytes        = 64
RNDfile         = /dev/urandom
RNDoverwrite    = yes

Service-level option defaults
cert            = /usr/pkg/etc/stunnel/stunnel.pem
ciphers         = RC4-MD5:HIGH:!aNULL:!SSLv2
curve           = sect163r2
session         = 300 seconds
sslVersion      = TLSv1 for client, all for server
stack           = 65536 bytes
TIMEOUTbusy     = 300 seconds
TIMEOUTclose    = 60 seconds
TIMEOUTconnect  = 10 seconds
TIMEOUTidle     = 43200 seconds
verify          = none



--
Ryo ONODERA // [email protected]
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3