diff options
| author | Werner Koch <[email protected]> | 2019-02-07 19:28:43 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-02-07 19:28:43 +0000 |
| commit | b79bc877f2ad4d08e7de377cf4bf616b981b3c5f (patch) | |
| tree | 752fc6b3df0b6e1d1b8dc8ff5abe11589a942dd4 /tools/card-tool.h | |
| parent | card: Fix a NULL-ptr deref in key listings. (diff) | |
| download | gnupg-b79bc877f2ad4d08e7de377cf4bf616b981b3c5f.tar.gz gnupg-b79bc877f2ad4d08e7de377cf4bf616b981b3c5f.zip | |
card: Print the used algorithm of all keys.
* tools/card-call-scd.c (scd_readkey): New.
* tools/card-tool-misc.c (pubkey_algo_string): New.
* tools/gpg-card-tool.c (list_one_kinfo): Print the algo.
--
It is convenient to see the actual algorithm of keys even if no
certificate has yet been created.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/card-tool.h')
| -rw-r--r-- | tools/card-tool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/card-tool.h b/tools/card-tool.h index 2707b3e8f..c121e88ef 100644 --- a/tools/card-tool.h +++ b/tools/card-tool.h @@ -192,6 +192,7 @@ gpg_error_t test_get_matching_keys (const char *hexgrip); /*-- card-tool-misc.c --*/ key_info_t find_kinfo (card_info_t info, const char *keyref); void *hex_to_buffer (const char *string, size_t *r_length); +char *pubkey_algo_string (gcry_sexp_t s_pkey); /*-- card-call-scd.c --*/ @@ -211,6 +212,7 @@ gpg_error_t scd_genkey (int keyno, int force, u32 *createtime); gpg_error_t scd_serialno (char **r_serialno, const char *demand); gpg_error_t scd_readcert (const char *certidstr, void **r_buf, size_t *r_buflen); +gpg_error_t scd_readkey (const char *keyrefstr, gcry_sexp_t *r_result); gpg_error_t scd_cardlist (strlist_t *result); gpg_error_t scd_change_pin (const char *pinref, int reset_mode); gpg_error_t scd_checkpin (const char *serialno); |
