mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Don't prompt for the password multiple times in pinentry loopback mode.
* g10/gpg.c (main): If OPT.PINENTRY_MODE is PINENTRY_MODE_LOOPBACK, clear OPT.PASSPHRASE_REPEAT.
This commit is contained in:
parent
15540f6233
commit
eac081ba12
1 changed files with 7 additions and 0 deletions
|
@ -3531,6 +3531,13 @@ main (int argc, char **argv)
|
|||
}
|
||||
FREE_STRLIST(nrings);
|
||||
|
||||
if (opt.pinentry_mode == PINENTRY_MODE_LOOPBACK)
|
||||
/* In loopback mode, never ask for the password multiple
|
||||
times. */
|
||||
{
|
||||
opt.passphrase_repeat = 0;
|
||||
}
|
||||
|
||||
if (cmd == aGPGConfTest)
|
||||
g10_exit(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue