From 276187f6b62a73e92b1c20f589510f80ab9e88d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 4 May 2021 18:35:29 +0200 Subject: core: Extend gpgme_key_sig_t with trust signature members. * src/gpgme.h.in (struct _gpgme_key_sig): Add fields 'trust_depth', 'trust_value', and 'trust_scope'. * src/key.c (gpgme_key_unref): Free trust_scope. * src/keylist.c (keylist_colon_handler): Set the fields. * tests/run-keylist.c (main): Print the fields. -- The trust signature values are part of gpg's output since the year 2003. This now adds support to gpgme. GnuPG-bug-id: 5245, 5419 --- tests/run-keylist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/run-keylist.c b/tests/run-keylist.c index 23c61108..f0ab74e8 100644 --- a/tests/run-keylist.c +++ b/tests/run-keylist.c @@ -369,6 +369,9 @@ main (int argc, char **argv) printf (" created: %s\n", isotimestr(ks->timestamp)); printf (" expires: %s\n", isotimestr(ks->expires)); printf (" class: %x\n", ks->sig_class); + printf (" trust depth: %u\n", ks->trust_depth); + printf (" trust value: %u\n", ks->trust_value); + printf (" trust scope: %s\n", nonnull (ks->trust_scope)); } } -- cgit v1.2.3