diff options
author | Werner Koch <wk@gnupg.org> | 2019-04-03 13:16:22 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-04-03 13:16:22 +0200 |
commit | 2b1135cf920cf3d863813d60f032d476dcccfb58 (patch) | |
tree | 128100370ccfa4fb91ff3fb9fc5a5aa078bb047f /sm | |
parent | gpg: Avoid endless loop if a card's serial number can't be read. (diff) | |
download | gnupg2-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.c | 2 |
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); |