diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-06-16 16:00:39 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-06-16 16:00:39 +0200 |
commit | eac081ba1278855fa223b031b527498fec558bc7 (patch) | |
tree | d76ccf6c963a32770cf8c93e3d783340331b2f0a /g10/gpg.c | |
parent | po: Update Japanese Translation. (diff) | |
download | gnupg2-eac081ba1278855fa223b031b527498fec558bc7.tar.xz gnupg2-eac081ba1278855fa223b031b527498fec558bc7.zip |
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.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r-- | g10/gpg.c | 7 |
1 files changed, 7 insertions, 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); |