diff options
author | Werner Koch <wk@gnupg.org> | 2020-09-21 14:47:53 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-09-21 14:47:53 +0200 |
commit | 26da47ae53d51e16ae6867cd419ddbf124a94933 (patch) | |
tree | 8c343896aacf1e07c71aabdebb457732bc540b14 /doc | |
parent | doc: Some documentation updates. (diff) | |
download | gnupg2-26da47ae53d51e16ae6867cd419ddbf124a94933.tar.xz gnupg2-26da47ae53d51e16ae6867cd419ddbf124a94933.zip |
scd: Extend KEYPAIRINFO with an algorithm string.
* scd/app-openpgp.c (send_keypair_info): Emit the algo string as part
of a KEYPAIRINFO.
* scd/command.c (do_readkey): Ditto.
* scd/app-piv.c (do_readkey): Ditto.
* scd/app-nks.c (do_learn_status_core): Ditto.
(struct fid_cache_s): Add field algostr.
(flush_fid_cache): Release it.
(keygripstr_from_pk_file): Fill it and add it to the cache. Use a
single exit label.
* scd/app-help.c (app_help_get_keygrip_string_pk): Add new arg
r_algostr. Change all callers.
--
This is helpful so that callers do not need to parse the key for this
basic information. Use "scd readkey --info-only" to return the info
status line instead of the key material; using just --info returns the
info in addition to the key material.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/DETAILS | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/DETAILS b/doc/DETAILS index 728239e19..98f4af511 100644 --- a/doc/DETAILS +++ b/doc/DETAILS @@ -2,7 +2,7 @@ #+TITLE: GnuPG Details # Globally disable superscripts and subscripts: #+OPTIONS: ^:{} -# +#+STARTUP: showall # Note: This file uses org-mode; it should be easy to read as plain # text but be aware of some markup peculiarities: Verbatim code is @@ -1183,7 +1183,7 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB: byte is either '-' for standard key or 'e' for an ephemeral key. The second byte is either '-' or 'r' for a known revoked key. -*** KEYPAIRINFO <grip> <keyref> [<usage>] [<keytime>] +*** KEYPAIRINFO <grip> <keyref> [<usage>] [<keytime>] [<algostr>] This status is emitted by scdaemon and gpg-agent to convey brief information about keypairs stored on tokens. <grip> is the @@ -1195,8 +1195,9 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB: encryption, 's' for signing, 'a' for authentication). A '-' can be used to tell that usage flags are not conveyed. <keytime> is used by OpenPGP cards for the stored key creation time. A '-' means no - info available. The format is the usual ISO string are a number - with the seconds since Epoch. + info available. The format is the usual ISO string or a number + with the seconds since Epoch. <algostr> is the algorithm or curve + this key uses (e.g. "rsa2048") or a "-" if not known. *** MANUFACTURER <n> [<string>] This status returns the Manufactorer ID as the unsigned number N. |