summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-09-21 14:47:53 +0200
committerWerner Koch <wk@gnupg.org>2020-09-21 14:47:53 +0200
commit26da47ae53d51e16ae6867cd419ddbf124a94933 (patch)
tree8c343896aacf1e07c71aabdebb457732bc540b14 /agent
parentdoc: Some documentation updates. (diff)
downloadgnupg2-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 'agent')
-rw-r--r--agent/call-scd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-scd.c b/agent/call-scd.c
index c58199539..3ede33c1d 100644
--- a/agent/call-scd.c
+++ b/agent/call-scd.c
@@ -677,7 +677,7 @@ readkey_status_cb (void *opaque, const char *line)
&& !parm->keyref)
{
/* The format of such a line is:
- * KEYPAIRINFO <hexgrip> <keyref> [usage] [keytime]
+ * KEYPAIRINFO <hexgrip> <keyref> [usage] [keytime] [algostr]
*
* Here we only need the keyref. We use only the first received
* KEYPAIRINFO; it is possible to receive several if there are