From: Glenn Morris Date: Sun, 4 Mar 2018 01:17:36 +0000 (-0800) Subject: Replace some obsolete functions in gnus X-Git-Tag: emacs-27.0.90~5560 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d3437eaf6777a9660d19dbec084392e8134984b7;p=emacs.git Replace some obsolete functions in gnus * lisp/gnus/mml-sec.el (mml-secure-epg-encrypt): * lisp/gnus/smime.el (smime-ask-passphrase): Replace obsolete functions. --- diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el index 099e5372b48..3855d7b7964 100644 --- a/lisp/gnus/mml-sec.el +++ b/lisp/gnus/mml-sec.el @@ -903,7 +903,7 @@ If no one is selected, symmetric encryption will be performed. " (defun mml-secure-epg-encrypt (protocol cont &optional sign) ;; Based on code appearing inside mml2015-epg-encrypt. (let* ((context (epg-make-context protocol)) - (config (epg-configuration)) + (config (epg-find-configuration 'OpenPGP)) (sender (message-options-get 'message-sender)) (recipients (mml-secure-recipients protocol context config sender)) (signer-names (mml-secure-signer-names protocol sender)) diff --git a/lisp/gnus/smime.el b/lisp/gnus/smime.el index 3e722d2d82d..d55cea724fb 100644 --- a/lisp/gnus/smime.el +++ b/lisp/gnus/smime.el @@ -234,10 +234,11 @@ must be set in `ldap-host-parameters-alist'." If `cache-key' and `password-cache' is non-nil then cache the password under `cache-key'." (let ((passphrase - (password-read-and-add + (password-read "Passphrase for secret key (RET for no passphrase): " cache-key))) (if (string= passphrase "") nil + (and passphrase cache-key (password-cache-add cache-key passphrase)) passphrase))) ;; OpenSSL wrappers.