diff options
| author | Miles Bader | 2008-04-21 07:13:33 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-04-21 07:13:33 +0000 |
| commit | d55fe5bb3eb98fc19dbab064b5adfbe3a16a6c1b (patch) | |
| tree | 8c0226d557585842b73cbe2d49f3c511dace6576 /lisp/net | |
| parent | d48c50ae86ec3b5bd6d40fbdb1357a56cb347b9a (diff) | |
| download | emacs-d55fe5bb3eb98fc19dbab064b5adfbe3a16a6c1b.tar.gz emacs-d55fe5bb3eb98fc19dbab064b5adfbe3a16a6c1b.zip | |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1118
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/tls.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/net/tls.el b/lisp/net/tls.el index 64a0460e08c..4cdc00c448b 100644 --- a/lisp/net/tls.el +++ b/lisp/net/tls.el | |||
| @@ -80,7 +80,7 @@ and `gnutls-cli' (version 2.0.1) output." | |||
| 80 | 80 | ||
| 81 | (defcustom tls-program '("gnutls-cli -p %p %h" | 81 | (defcustom tls-program '("gnutls-cli -p %p %h" |
| 82 | "gnutls-cli -p %p %h --protocols ssl3" | 82 | "gnutls-cli -p %p %h --protocols ssl3" |
| 83 | "openssl s_client -connect %h:%p -no_ssl2") | 83 | "openssl s_client -connect %h:%p -no_ssl2 -ign_eof") |
| 84 | "List of strings containing commands to start TLS stream to a host. | 84 | "List of strings containing commands to start TLS stream to a host. |
| 85 | Each entry in the list is tried until a connection is successful. | 85 | Each entry in the list is tried until a connection is successful. |
| 86 | %h is replaced with server hostname, %p with port to connect to. | 86 | %h is replaced with server hostname, %p with port to connect to. |
| @@ -97,23 +97,23 @@ successful negotiation." | |||
| 97 | :value | 97 | :value |
| 98 | ("gnutls-cli -p %p %h" | 98 | ("gnutls-cli -p %p %h" |
| 99 | "gnutls-cli -p %p %h --protocols ssl3" | 99 | "gnutls-cli -p %p %h --protocols ssl3" |
| 100 | "openssl s_client -connect %h:%p -no_ssl2") | 100 | "openssl s_client -connect %h:%p -no_ssl2 -ign_eof") |
| 101 | (set :inline t | 101 | (set :inline t |
| 102 | ;; FIXME: add brief `:tag "..."' descriptions. | 102 | ;; FIXME: add brief `:tag "..."' descriptions. |
| 103 | ;; (repeat :inline t :tag "Other" (string)) | 103 | ;; (repeat :inline t :tag "Other" (string)) |
| 104 | ;; See `tls-checktrust': | 104 | ;; See `tls-checktrust': |
| 105 | (const "gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h") | 105 | (const "gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h") |
| 106 | (const "gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h --protocols ssl3") | 106 | (const "gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h --protocols ssl3") |
| 107 | (const "openssl s_client -connect %h:%p -CAfile /etc/ssl/certs/ca-certificates.crt -no_ssl2") | 107 | (const "openssl s_client -connect %h:%p -CAfile /etc/ssl/certs/ca-certificates.crt -no_ssl2 -ign_eof") |
| 108 | ;; No trust check: | 108 | ;; No trust check: |
| 109 | (const "gnutls-cli -p %p %h") | 109 | (const "gnutls-cli -p %p %h") |
| 110 | (const "gnutls-cli -p %p %h --protocols ssl3") | 110 | (const "gnutls-cli -p %p %h --protocols ssl3") |
| 111 | (const "openssl s_client -connect %h:%p -no_ssl2")) | 111 | (const "openssl s_client -connect %h:%p -no_ssl2 -ign_eof")) |
| 112 | (repeat :inline t :tag "Other" (string))) | 112 | (repeat :inline t :tag "Other" (string))) |
| 113 | (const :tag "Default list of commands" | 113 | (const :tag "Default list of commands" |
| 114 | ("gnutls-cli -p %p %h" | 114 | ("gnutls-cli -p %p %h" |
| 115 | "gnutls-cli -p %p %h --protocols ssl3" | 115 | "gnutls-cli -p %p %h --protocols ssl3" |
| 116 | "openssl s_client -connect %h:%p -no_ssl2")) | 116 | "openssl s_client -connect %h:%p -no_ssl2 -ign_eof")) |
| 117 | (list :tag "List of commands" | 117 | (list :tag "List of commands" |
| 118 | (repeat :tag "Command" (string)))) | 118 | (repeat :tag "Command" (string)))) |
| 119 | :version "22.1" | 119 | :version "22.1" |
| @@ -144,7 +144,7 @@ consider trustworthy, e.g.: | |||
| 144 | \(setq tls-program | 144 | \(setq tls-program |
| 145 | '(\"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h\" | 145 | '(\"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h\" |
| 146 | \"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h --protocols ssl3\" | 146 | \"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h --protocols ssl3\" |
| 147 | \"openssl s_client -connect %h:%p -CAfile /etc/ssl/certs/ca-certificates.crt -no_ssl2\"))" | 147 | \"openssl s_client -connect %h:%p -CAfile /etc/ssl/certs/ca-certificates.crt -no_ssl2 -ign_eof\"))" |
| 148 | :type '(choice (const :tag "Always" t) | 148 | :type '(choice (const :tag "Always" t) |
| 149 | (const :tag "Never" nil) | 149 | (const :tag "Never" nil) |
| 150 | (const :tag "Ask" ask)) | 150 | (const :tag "Ask" ask)) |