summaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2015-06-16 16:00:39 +0200
committerNeal H. Walfield <neal@g10code.com>2015-06-16 16:00:39 +0200
commiteac081ba1278855fa223b031b527498fec558bc7 (patch)
treed76ccf6c963a32770cf8c93e3d783340331b2f0a /g10/gpg.c
parentpo: Update Japanese Translation. (diff)
downloadgnupg2-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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 1801c878d..5eae24092 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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);