Function: epg-context-set-passphrase-callback
epg-context-set-passphrase-callback is an autoloaded and byte-compiled
function defined in epg.el.gz.
Signature
(epg-context-set-passphrase-callback CONTEXT PASSPHRASE-CALLBACK)
Documentation
Set the function used to query passphrase.
PASSPHRASE-CALLBACK is either a function, or a cons-cell whose car is a function and cdr is a callback data.
The function gets three arguments: the context, the key-id in question, and the callback data (if any).
The callback may not be called if you use GnuPG 2.0, which relies only on external programs for passphrase query and does not provide loopback pinentry. For details see Info node (epa) GnuPG version compatibility and Info node (epa) GnuPG Pinentry.
Source Code
;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-context-set-passphrase-callback (context
passphrase-callback)
"Set the function used to query passphrase.
PASSPHRASE-CALLBACK is either a function, or a cons-cell whose
car is a function and cdr is a callback data.
The function gets three arguments: the context, the key-id in
question, and the callback data (if any).
The callback may not be called if you use GnuPG 2.0, which relies
only on external programs for passphrase query and does not
provide loopback pinentry. For details see Info node `(epa)
GnuPG version compatibility' and Info node `(epa) GnuPG
Pinentry'."
;; (declare (obsolete setf "25.1"))
(setf (epg-context-passphrase-callback context)
(if (functionp passphrase-callback)
(list passphrase-callback)
passphrase-callback)))