aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/epg.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/epg.el')
-rw-r--r--lisp/epg.el16
1 files changed, 2 insertions, 14 deletions
diff --git a/lisp/epg.el b/lisp/epg.el
index 96af3ad4bca..920b85398f3 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -190,6 +190,7 @@
190 (string nil :read-only t)) 190 (string nil :read-only t))
191 191
192;;;; Context Struct 192;;;; Context Struct
193(declare-function epa-passphrase-callback-function "epa.el")
193 194
194(cl-defstruct (epg-context 195(cl-defstruct (epg-context
195 (:constructor nil) 196 (:constructor nil)
@@ -215,7 +216,7 @@
215 cipher-algorithm 216 cipher-algorithm
216 digest-algorithm 217 digest-algorithm
217 compress-algorithm 218 compress-algorithm
218 (passphrase-callback (list #'epg-passphrase-callback-function)) 219 (passphrase-callback (list #'epa-passphrase-callback-function))
219 progress-callback 220 progress-callback
220 edit-callback 221 edit-callback
221 signers 222 signers
@@ -1246,19 +1247,6 @@ callback data (if any)."
1246 1247
1247;;; Functions 1248;;; Functions
1248 1249
1249(defun epg-passphrase-callback-function (context key-id _handback)
1250 (declare (obsolete epa-passphrase-callback-function "23.1"))
1251 (if (eq key-id 'SYM)
1252 (read-passwd "Passphrase for symmetric encryption: "
1253 (eq (epg-context-operation context) 'encrypt))
1254 (read-passwd
1255 (if (eq key-id 'PIN)
1256 "Passphrase for PIN: "
1257 (let ((entry (assoc key-id epg-user-id-alist)))
1258 (if entry
1259 (format "Passphrase for %s %s: " key-id (cdr entry))
1260 (format "Passphrase for %s: " key-id)))))))
1261
1262(defun epg--list-keys-1 (context name mode) 1250(defun epg--list-keys-1 (context name mode)
1263 (let ((args (append (if (epg-context-home-directory context) 1251 (let ((args (append (if (epg-context-home-directory context)
1264 (list "--homedir" 1252 (list "--homedir"