mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
a425334f48
commit
0c224cadf3
6 changed files with 56 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue