diff options
author | Werner Koch <[email protected]> | 2024-11-14 11:31:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-11-14 11:31:21 +0000 |
commit | 62b6c1f16ae0ed7b0eb1b095ee383aa0910314bb (patch) | |
tree | 1a5bde52c798a8c6c9406c24a971b8ce7c3868e1 /tests | |
parent | Post release updates (diff) | |
download | gpgme-62b6c1f16ae0ed7b0eb1b095ee383aa0910314bb.tar.gz gpgme-62b6c1f16ae0ed7b0eb1b095ee383aa0910314bb.zip |
Support the Kyber algorithm in key listings.
* src/gpgme.h.in (GPGME_PK_KYBER): New.
* src/conversion.c (_gpgme_map_pk_algo): Handle Kyber.
* src/gpgme.c (gpgme_pubkey_algo_string): Support Kyber.
(gpgme_pubkey_algo_name): Add Kyber.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run-keylist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/run-keylist.c b/tests/run-keylist.c index 8e784451..7bbb9769 100644 --- a/tests/run-keylist.c +++ b/tests/run-keylist.c @@ -347,13 +347,17 @@ main (int argc, char **argv) subkey = key->subkeys; for (nsub=0; subkey; subkey = subkey->next, nsub++) { + char *algostr; + printf ("fpr %2d: %s\n", nsub, nonnull (subkey->fpr)); if (subkey->v5fpr) printf ("v5fpr %2d: %s\n", nsub, nonnull (subkey->v5fpr)); if (subkey->keygrip) printf ("grip %2d: %s\n", nsub, subkey->keygrip); - if (subkey->curve) - printf ("curve %2d: %s\n", nsub, subkey->curve); + algostr = gpgme_pubkey_algo_string (subkey); + printf ("algo %2d: %s (%s)\n", nsub, algostr, + gpgme_pubkey_algo_name (subkey->pubkey_algo)); + gpgme_free (algostr); printf ("caps %2d: %s%s%s%s%s%s\n", nsub, subkey->can_encrypt? "e":"", |