scd: New standard attributes $ENCRKEYID and $SIGNKEYID.
authorWerner Koch <wk@gnupg.org>
Wed, 3 Apr 2019 11:16:22 +0000 (13:16 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 3 Apr 2019 11:16:22 +0000 (13:16 +0200)
commit2b1135cf920cf3d863813d60f032d476dcccfb58
tree128100370ccfa4fb91ff3fb9fc5a5aa078bb047f
parent1f688e0d1dba4dd7a311d416d06d654ed7b4290d
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>
g10/call-agent.c
scd/app-openpgp.c
scd/app-piv.c
sm/call-agent.c