X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/321decc890cabcf8b6ae8d1838fdf343eb899a55..ed78d16c6eabaa6c23c9964cc925541349c6088c:/lisp/gnus/starttls.el diff --git a/lisp/gnus/starttls.el b/lisp/gnus/starttls.el index 58dbebf4c5..db6a0f8fd1 100644 --- a/lisp/gnus/starttls.el +++ b/lisp/gnus/starttls.el @@ -1,6 +1,6 @@ ;;; starttls.el --- STARTTLS functions -;; Copyright (C) 1999-2011 Free Software Foundation, Inc. +;; Copyright (C) 1999-2013 Free Software Foundation, Inc. ;; Author: Daiki Ueno ;; Author: Simon Josefsson @@ -35,7 +35,7 @@ ;; and the second one is Simon Josefsson's starttls.el which uses ;; "gnutls-cli" from GnuTLS. ;; -;; If "starttls" is available, it is prefered by the code over +;; If "starttls" is available, it is preferred by the code over ;; "gnutls-cli", for backwards compatibility. Use ;; `starttls-use-gnutls' to toggle between implementations if you have ;; both tools installed. It is recommended to use GnuTLS, though, as @@ -149,7 +149,7 @@ These apply when the `starttls' command is used, i.e. when :group 'starttls) (defcustom starttls-extra-arguments nil - "Extra arguments to `starttls-program'. + "Extra arguments to `starttls-gnutls-program'. These apply when GnuTLS is used, i.e. when `starttls-use-gnutls' is non-nil. For example, non-TLS compliant servers may require @@ -297,9 +297,10 @@ GnuTLS requires a port number." (defun starttls-available-p () "Say whether the STARTTLS programs are available." - (executable-find (if starttls-use-gnutls - starttls-gnutls-program - starttls-program))) + (and (not (memq system-type '(windows-nt ms-dos))) + (executable-find (if starttls-use-gnutls + starttls-gnutls-program + starttls-program)))) (defalias 'starttls-any-program-available 'starttls-available-p) (make-obsolete 'starttls-any-program-available 'starttls-available-p