diff options
| author | Glenn Morris | 2018-03-03 17:17:36 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-03-03 17:18:04 -0800 |
| commit | d3437eaf6777a9660d19dbec084392e8134984b7 (patch) | |
| tree | d03d575d2df4763a1433aea63f497a9a52dca78d | |
| parent | a56a3fc6849b89a71c9a00afcb088021ccbe94e5 (diff) | |
| download | emacs-d3437eaf6777a9660d19dbec084392e8134984b7.tar.gz emacs-d3437eaf6777a9660d19dbec084392e8134984b7.zip | |
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.
| -rw-r--r-- | lisp/gnus/mml-sec.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/smime.el | 3 |
2 files changed, 3 insertions, 2 deletions
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. " | |||
| 903 | (defun mml-secure-epg-encrypt (protocol cont &optional sign) | 903 | (defun mml-secure-epg-encrypt (protocol cont &optional sign) |
| 904 | ;; Based on code appearing inside mml2015-epg-encrypt. | 904 | ;; Based on code appearing inside mml2015-epg-encrypt. |
| 905 | (let* ((context (epg-make-context protocol)) | 905 | (let* ((context (epg-make-context protocol)) |
| 906 | (config (epg-configuration)) | 906 | (config (epg-find-configuration 'OpenPGP)) |
| 907 | (sender (message-options-get 'message-sender)) | 907 | (sender (message-options-get 'message-sender)) |
| 908 | (recipients (mml-secure-recipients protocol context config sender)) | 908 | (recipients (mml-secure-recipients protocol context config sender)) |
| 909 | (signer-names (mml-secure-signer-names protocol sender)) | 909 | (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'." | |||
| 234 | If `cache-key' and `password-cache' is non-nil then cache the | 234 | If `cache-key' and `password-cache' is non-nil then cache the |
| 235 | password under `cache-key'." | 235 | password under `cache-key'." |
| 236 | (let ((passphrase | 236 | (let ((passphrase |
| 237 | (password-read-and-add | 237 | (password-read |
| 238 | "Passphrase for secret key (RET for no passphrase): " cache-key))) | 238 | "Passphrase for secret key (RET for no passphrase): " cache-key))) |
| 239 | (if (string= passphrase "") | 239 | (if (string= passphrase "") |
| 240 | nil | 240 | nil |
| 241 | (and passphrase cache-key (password-cache-add cache-key passphrase)) | ||
| 241 | passphrase))) | 242 | passphrase))) |
| 242 | 243 | ||
| 243 | ;; OpenSSL wrappers. | 244 | ;; OpenSSL wrappers. |