1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +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:
Neal H. Walfield 2015-06-16 16:00:39 +02:00
parent 15540f6233
commit eac081ba12

View File

@ -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);