Home GnuPG
Diffusion GnuPG 77b008d1e74b

scd:nks: Handle APP_READKEY_FLAG_INFO.

Description

scd:nks: Handle APP_READKEY_FLAG_INFO.

* scd/app-nks.c (keygripstr_from_pk_file): Fix ignored error.
(get_nks_tag): New.
(do_learn_status_core): Use it.  Make sure not to mange the
KEYPAIRINFO line if no usage is known.
(do_readkey): Output the KEYPAIRINFO for the keygrip case.

Note that this only handles the most common case of providing a
keygrip. $AUTHKEYID and ODLM are not yet supported.

(cherry picked from commit 63320ba2f8147ee86f4406c9590f6b28cad4771d)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 8 2021, 7:30 PM
Parents
rG8bccd95b38f2: scd:nks: Add support for signing plain SHA-2 digests.
Branches
Unknown
Tags
Unknown