mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Don't enable pinentry loopback mode for gpgsm
* lisp/epg.el (epg--start): Passphrase entry through the minibuffer is currently not supported with gpgsm, therefore don't pass "--pinentry-mode loopback" as an argument when the protocol is CMS. (Bug#67012) * doc/misc/epa.texi (GnuPG Pinentry): Document it.
This commit is contained in:
parent
9656fe0358
commit
e736a1b5a2
2 changed files with 9 additions and 1 deletions
|
|
@ -640,6 +640,9 @@ Customize variable @code{epg-pinentry-mode} to @code{loopback} in
|
|||
Emacs.
|
||||
@end enumerate
|
||||
|
||||
Note that loopback Pinentry does not work with @command{gpgsm},
|
||||
therefore EasyPG will ignore this setting for it.
|
||||
|
||||
There are other options available to use Emacs as Pinentry, you might
|
||||
come across a Pinentry called @command{pinentry-emacs} or
|
||||
@command{gpg-agent} option @code{allow-emacs-pinentry}. However,
|
||||
|
|
|
|||
|
|
@ -595,7 +595,12 @@ callback data (if any)."
|
|||
(if (epg-context-textmode context) '("--textmode"))
|
||||
(if (epg-context-output-file context)
|
||||
(list "--output" (epg-context-output-file context)))
|
||||
(if (epg-context-pinentry-mode context)
|
||||
(if (and (epg-context-pinentry-mode context)
|
||||
(not
|
||||
;; loopback doesn't work with gpgsm
|
||||
(and (eq (epg-context-protocol context) 'CMS)
|
||||
(eq (epg-context-pinentry-mode context)
|
||||
'loopback))))
|
||||
(list "--pinentry-mode"
|
||||
(symbol-name (epg-context-pinentry-mode
|
||||
context))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue