diff options
author | Glenn Morris <rgm@gnu.org> | 2016-03-17 00:14:11 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2016-03-17 00:14:11 -0700 |
commit | 58862751bde2611d9ea99a33ecb5b0c13a7513b9 (patch) | |
tree | e04c2907816b29932fb83ecf327f26b219a09bec /lisp/gnus/mml-smime.el | |
parent | 327c31b33cb175623aa788613c031a5acc4c856f (diff) | |
download | emacs-58862751bde2611d9ea99a33ecb5b0c13a7513b9.tar.gz emacs-58862751bde2611d9ea99a33ecb5b0c13a7513b9.tar.bz2 emacs-58862751bde2611d9ea99a33ecb5b0c13a7513b9.zip |
Simplify some rococo Gnus code that loads or tests for other libraries.
* lisp/gnus/gnus-art.el (gnus-treat-ansi-sequences): Simplify default.
* lisp/gnus/mml-smime.el (epg): Simply require it.
(mml-smime-use): Simplify the default. Doc fix.
* lisp/gnus/mml2015.el (epg-config): Require it.
(mml2015-use): Simplify the default.
* lisp/gnus/smime.el (password-cache): Simply require it.
(password-read-and-add): Remove declaration.
Diffstat (limited to 'lisp/gnus/mml-smime.el')
-rw-r--r-- | lisp/gnus/mml-smime.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index 02e602ce77f..e473a6d3ff3 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el @@ -32,17 +32,17 @@ (autoload 'message-narrow-to-headers "message") (autoload 'message-fetch-field "message") -;; Prefer epg over openssl if it is available as epg uses GnuPG's gpgsm, +;; Prefer epg over openssl as epg uses GnuPG's gpgsm, ;; which features full-fledged certificate management, while openssl requires ;; major manual efforts for certificate revocation and expiry and has bugs ;; as documented under man smime(1). -(ignore-errors (require 'epg)) +(require 'epg) -(defcustom mml-smime-use (if (featurep 'epg) 'epg 'openssl) +(defcustom mml-smime-use 'epg "Whether to use OpenSSL or EasyPG (EPG) to handle S/MIME messages. -Defaults to EPG if it's available. -If you think about using OpenSSL, please read the BUGS section in the manual -for the `smime' command coming with OpenSSL first. EasyPG is recommended." +If you're thinking about using OpenSSL, please first read the BUGS section +in the manual for the `smime' command that comes with OpenSSL. +We recommend EasyPG." :group 'mime-security :type '(choice (const :tag "EPG" epg) (const :tag "OpenSSL" openssl))) |