aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
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 /src/gpgme.h.in
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 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index bfd6f72b..0ee3e088 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -763,6 +763,28 @@ struct _gpgme_user_id
typedef struct _gpgme_user_id *gpgme_user_id_t;
+/* A designated revocation key for a key.
+ * This structure shall be considered read-only and an application
+ * must not allocate such a structure on its own. */
+struct _gpgme_revocation_key
+{
+ struct _gpgme_revocation_key *next;
+
+ /* The public key algorithm of the revocation key. */
+ gpgme_pubkey_algo_t pubkey_algo;
+
+ /* The fingerprint of the revocation_key in hex digit form. */
+ char *fpr;
+
+ /* The class of the revocation key. */
+ unsigned int key_class;
+
+ /* True if the revocation key should not be exported. */
+ unsigned int sensitive : 1;
+};
+typedef struct _gpgme_revocation_key *gpgme_revocation_key_t;
+
+
/* A key from the keyring.
* This structure shall be considered read-only and an application
* must not allocate such a structure on its own. */
@@ -860,6 +882,12 @@ struct _gpgme_key
/* Time of the last refresh of the entire key. 0 if unknown. */
unsigned long last_update;
+
+ /* The revocation keys of the key. */
+ gpgme_revocation_key_t revocation_keys;
+
+ /* Internal to GPGME, do not use. */
+ gpgme_revocation_key_t _last_revkey;
};
typedef struct _gpgme_key *gpgme_key_t;