aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-27 06:48:00 +0000
committerWerner Koch <[email protected]>2018-03-27 06:48:00 +0000
commitd4dc4245bf0221d2db4118718fc2528ecf43b97b (patch)
tree5912abc9b9ba056a882bcd933105ba4dde73c560 /g10/keyedit.c
parentChange license of argparse.c back to LGPLv2.1 (diff)
parentagent: Make the request origin a part of the cache items. (diff)
downloadgnupg-d4dc4245bf0221d2db4118718fc2528ecf43b97b.tar.gz
gnupg-d4dc4245bf0221d2db4118718fc2528ecf43b97b.zip
Merge branch 'STABLE-BRANCH-2-2' into master
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 2c33a29dd..2cb9bb2ff 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -1134,8 +1134,10 @@ change_passphrase (ctrl_t ctrl, kbnode_t keyblock)
if (err)
goto leave;
+ /* Note that when using --dry-run we don't change the
+ * passphrase but merely verify the current passphrase. */
desc = gpg_format_keydesc (ctrl, pk, FORMAT_KEYDESC_NORMAL, 1);
- err = agent_passwd (ctrl, hexgrip, desc, 0,
+ err = agent_passwd (ctrl, hexgrip, desc, !!opt.dry_run,
&cache_nonce, &passwd_nonce);
xfree (desc);