1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

let cmd learn also return KEYPAIRINFO

This commit is contained in:
Werner Koch 2006-09-26 17:32:28 +00:00
parent 13e4f5c95c
commit f28d2d5c43
3 changed files with 13 additions and 0 deletions

View file

@ -360,6 +360,12 @@ agent_handle_learn (ctrl_t ctrl, void *assuan_context)
if (item->no_cert)
continue; /* No public key yet available. */
if (assuan_context)
{
agent_write_status (ctrl, "KEYPAIRINFO",
item->hexgrip, item->id, NULL);
}
for (p=item->hexgrip, i=0; i < 20; p += 2, i++)
grip[i] = xtoi_2 (p);