mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01: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
@ -3531,6 +3531,13 @@ main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
FREE_STRLIST(nrings);
|
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)
|
if (cmd == aGPGConfTest)
|
||||||
g10_exit(0);
|
g10_exit(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user