summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-09-26 19:32:28 +0200
committerWerner Koch <wk@gnupg.org>2006-09-26 19:32:28 +0200
commitf28d2d5c43ad2b481c15e2b2e08ae6a9169e0d5a (patch)
tree01b319748bdf4543d97d08a80e6c97f668def80f
parentMade buliding w/o curl work (diff)
downloadgnupg2-f28d2d5c43ad2b481c15e2b2e08ae6a9169e0d5a.tar.xz
gnupg2-f28d2d5c43ad2b481c15e2b2e08ae6a9169e0d5a.zip
let cmd learn also return KEYPAIRINFO
-rw-r--r--agent/ChangeLog5
-rw-r--r--agent/command.c2
-rw-r--r--agent/learncard.c6
3 files changed, 13 insertions, 0 deletions
diff --git a/agent/ChangeLog b/agent/ChangeLog
index 46205861d..b9020772d 100644
--- a/agent/ChangeLog
+++ b/agent/ChangeLog
@@ -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>
* trustlist.c (read_one_trustfile): Allow extra flags.
diff --git a/agent/command.c b/agent/command.c
index ba2bfe8b8..a77ceaff2 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1183,6 +1183,8 @@ option_handler (assuan_context_t ctx, const char *key, const char *value)
return 0;
}
+
+
/* Tell the assuan library about our commands */
static int
diff --git a/agent/learncard.c b/agent/learncard.c
index 8b2c7addd..fac12bea2 100644
--- a/agent/learncard.c
+++ b/agent/learncard.c
@@ -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);