mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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-nks.c (do_getattr): Add attributes too.
--
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 replace
the use of "OPENPGP.2" by a app type specific keyref.
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 2b1135cf92
)
Removed changes for the non-existing app-piv.c.
Added support for NKS.
This commit is contained in:
parent
fbed618a36
commit
23784f8bf0
4 changed files with 36 additions and 6 deletions
|
@ -819,7 +819,7 @@ agent_scd_keypairinfo (ctrl_t ctrl, strlist_t *r_list)
|
|||
memset (&inq_parm, 0, sizeof inq_parm);
|
||||
inq_parm.ctx = agent_ctx;
|
||||
|
||||
err = assuan_transact (agent_ctx, "SCD LEARN --force",
|
||||
err = assuan_transact (agent_ctx, "SCD LEARN --keypairinfo",
|
||||
NULL, NULL,
|
||||
default_inq_cb, &inq_parm,
|
||||
scd_keypairinfo_status_cb, &list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue