aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-keylist.c
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-05-24 08:47:15 +0000
committerIngo Klöcker <[email protected]>2024-05-24 08:47:15 +0000
commitf0d1f2c4c746d6f98643772b4864c09f3642cd83 (patch)
tree6348dacfbb5f42e946902dc42436d165fb8df904 /tests/run-keylist.c
parentqt,cpp: Implement adding ADSKs to existing keys (diff)
parentcpp: Add information about revocation keys to Key (diff)
downloadgpgme-f0d1f2c4c746d6f98643772b4864c09f3642cd83.tar.gz
gpgme-f0d1f2c4c746d6f98643772b4864c09f3642cd83.zip
Merge branch 'ikloecker/t7118-revkeys'
Diffstat (limited to '')
-rw-r--r--tests/run-keylist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-keylist.c b/tests/run-keylist.c
index a9d4b6aa..9ecf380b 100644
--- a/tests/run-keylist.c
+++ b/tests/run-keylist.c
@@ -308,9 +308,11 @@ main (int argc, char **argv)
gpgme_user_id_t uid;
gpgme_tofu_info_t ti;
gpgme_key_sig_t ks;
+ gpgme_revocation_key_t revkey;
int nuids;
int nsub;
int nsigs;
+ int nrevkeys;
printf ("keyid : %s\n", key->subkeys?nonnull (key->subkeys->keyid):"?");
printf ("can_cap : %s%s%s%s\n",
@@ -425,6 +427,13 @@ main (int argc, char **argv)
}
}
+ revkey = key->revocation_keys;
+ for (nrevkeys=0; revkey; revkey = revkey->next, nrevkeys++)
+ {
+ printf ("revkey%2d: %s\n", nrevkeys, revkey->fpr);
+ printf (" class: %x\n", revkey->key_class);
+ }
+
putchar ('\n');
if (import)