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
1 changed files with 7 additions and 0 deletions

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