aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-02-21 13:05:52 +0000
committerWerner Koch <[email protected]>2004-02-21 13:05:52 +0000
commit0c224cadf3f8b5ae259d8936f7963b56f63a0c26 (patch)
treea72e923d4d3d40e148e843d1be3608ec634a36f3 /sm/gpgsm.c
parent* command.c (cmd_passwd): Take acount of a key description. (diff)
downloadgnupg-0c224cadf3f8b5ae259d8936f7963b56f63a0c26.tar.gz
gnupg-0c224cadf3f8b5ae259d8936f7963b56f63a0c26.zip
* keylist.c (list_internal_keys): Return error codes.
(list_external_keys, gpgsm_list_keys): Ditto. * server.c (do_listkeys): Ditto. * gpgsm.c (main): Display a key description for --passwd. * call-agent.c (gpgsm_agent_passwd): New arg DESC.
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 68214a6d8..6f3e62a33 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -1452,7 +1452,11 @@ main ( int argc, char **argv)
else if (!(grip = gpgsm_get_keygrip_hexstring (cert)))
rc = gpg_error (GPG_ERR_BUG);
else
- rc = gpgsm_agent_passwd (grip);
+ {
+ char *desc = gpgsm_format_keydesc (cert);
+ rc = gpgsm_agent_passwd (grip, desc);
+ xfree (desc);
+ }
if (rc)
log_error ("error changing passphrase: %s\n", gpg_strerror (rc));
xfree (grip);