aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2021-05-04 16:35:29 +0000
committerIngo Klöcker <[email protected]>2021-05-05 17:23:48 +0000
commit276187f6b62a73e92b1c20f589510f80ab9e88d2 (patch)
treee7cfb6e978eb2d49622cd46a0cd21abc25fd933f /src/gpgme.h.in
parentdoc: Add MIT license notice. (diff)
downloadgpgme-276187f6b62a73e92b1c20f589510f80ab9e88d2.tar.gz
gpgme-276187f6b62a73e92b1c20f589510f80ab9e88d2.zip
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
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 0a90c8d2..6471f0ad 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -627,7 +627,13 @@ struct _gpgme_key_sig
unsigned int exportable : 1;
/* Internal to GPGME, do not use. */
- unsigned int _unused : 28;
+ unsigned int _unused : 12;
+
+ /* The depth of a trust signature, 0 if no trust signature. */
+ unsigned int trust_depth : 8;
+
+ /* The trust value of a trust signature, 0 if no trust signature. */
+ unsigned int trust_value : 8;
/* The public key algorithm used to create the signature. */
gpgme_pubkey_algo_t pubkey_algo;
@@ -644,6 +650,9 @@ struct _gpgme_key_sig
/* The expiration timestamp, 0 if the subkey does not expire. */
long int expires;
+ /* The scope of a trust signature. Might be NULL. */
+ char *trust_scope;
+
/* Same as in gpgme_signature_t. */
gpgme_error_t status;