mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
let cmd learn also return KEYPAIRINFO
This commit is contained in:
parent
13e4f5c95c
commit
f28d2d5c43
@ -1,3 +1,8 @@
|
|||||||
|
2006-09-26 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* learncard.c (agent_handle_learn): Send back the keypair
|
||||||
|
information.
|
||||||
|
|
||||||
2006-09-25 Werner Koch <wk@g10code.com>
|
2006-09-25 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* trustlist.c (read_one_trustfile): Allow extra flags.
|
* trustlist.c (read_one_trustfile): Allow extra flags.
|
||||||
|
@ -1183,6 +1183,8 @@ option_handler (assuan_context_t ctx, const char *key, const char *value)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Tell the assuan library about our commands */
|
/* Tell the assuan library about our commands */
|
||||||
static int
|
static int
|
||||||
|
@ -360,6 +360,12 @@ agent_handle_learn (ctrl_t ctrl, void *assuan_context)
|
|||||||
if (item->no_cert)
|
if (item->no_cert)
|
||||||
continue; /* No public key yet available. */
|
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++)
|
for (p=item->hexgrip, i=0; i < 20; p += 2, i++)
|
||||||
grip[i] = xtoi_2 (p);
|
grip[i] = xtoi_2 (p);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user