Home GnuPG
Diffusion GnuPG 63320ba2f814

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.

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

Details

Provenance
wernerAuthored on Apr 8 2021, 7:30 PM
Parents
rG22fd48e48d00: scd: Fix duplicate output of KEYPAIRINFO by readkey command.
Branches
Unknown
Tags
Unknown