diff options
| author | Lars Magne Ingebrigtsen | 2011-08-02 15:34:05 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-08-02 15:34:05 +0200 |
| commit | 2239d7d5eff3f68a1906773c88f67415ba08bd0a (patch) | |
| tree | f023d17f18dc6d2f889007250986c4868952a207 | |
| parent | 0f805e429dacd342a6292536645ff8cd79323d26 (diff) | |
| download | emacs-2239d7d5eff3f68a1906773c88f67415ba08bd0a.tar.gz emacs-2239d7d5eff3f68a1906773c88f67415ba08bd0a.zip | |
Use `starttls-available-p' to see whether starttls.el can be used.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/network-stream.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 791233439bb..ad5cad4307d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * net/network-stream.el (network-stream-open-starttls): Use | ||
| 4 | `starttls-available-p' to see whether starttls.el can be used. | ||
| 5 | |||
| 1 | 2011-08-01 Martin Rudalics <rudalics@gmx.at> | 6 | 2011-08-01 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.el (display-buffer-in-window): Don't set dedicated status | 8 | * window.el (display-buffer-in-window): Don't set dedicated status |
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index bb09d8945c9..ceb094cded7 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el | |||
| @@ -230,7 +230,7 @@ functionality. | |||
| 230 | (or builtin-starttls | 230 | (or builtin-starttls |
| 231 | (and (or require-tls | 231 | (and (or require-tls |
| 232 | (plist-get parameters :use-starttls-if-possible)) | 232 | (plist-get parameters :use-starttls-if-possible)) |
| 233 | (executable-find "gnutls-cli"))) | 233 | (starttls-available-p))) |
| 234 | (not (eq (plist-get parameters :type) 'plain))) | 234 | (not (eq (plist-get parameters :type) 'plain))) |
| 235 | ;; If using external STARTTLS, drop this connection and start | 235 | ;; If using external STARTTLS, drop this connection and start |
| 236 | ;; anew with `starttls-open-stream'. | 236 | ;; anew with `starttls-open-stream'. |