summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-04-03 13:16:22 +0200
committerWerner Koch <wk@gnupg.org>2019-04-03 13:16:22 +0200
commit2b1135cf920cf3d863813d60f032d476dcccfb58 (patch)
tree128100370ccfa4fb91ff3fb9fc5a5aa078bb047f /sm
parentgpg: Avoid endless loop if a card's serial number can't be read. (diff)
downloadgnupg2-2b1135cf920cf3d863813d60f032d476dcccfb58.tar.xz
gnupg2-2b1135cf920cf3d863813d60f032d476dcccfb58.zip
scd: New standard attributes $ENCRKEYID and $SIGNKEYID.
* g10/call-agent.c (agent_scd_keypairinfo): Use --keypairinfo. * sm/call-agent.c (gpgsm_agent_scd_keypairinfo): Ditto. * scd/app-openpgp.c (do_getattr): Add attributes "$ENCRKEYID" and "$SIGNKEYID". * scd/app-piv.c (do_getattr): Ditto. -- We already have $AUTHKEYID to locate the keyref of the key to be used with ssh. It will also be useful to have default keyref for encryption and signing. For example, this will allow us to repalce the use of "OPENPGP.2" by a app type specific keyref. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm')
-rw-r--r--sm/call-agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index 4c3eecb10..1fbb449bc 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -836,7 +836,7 @@ gpgsm_agent_scd_keypairinfo (ctrl_t ctrl, strlist_t *r_list)
inq_parm.ctrl = ctrl;
inq_parm.ctx = agent_ctx;
- rc = assuan_transact (agent_ctx, "SCD LEARN --force",
+ rc = assuan_transact (agent_ctx, "SCD LEARN --keypairinfo",
NULL, NULL,
default_inq_cb, &inq_parm,
scd_keypairinfo_status_cb, &list);