From 1a7bc88ee756df127761c90a4b66d885f0c9de74 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 7 Oct 2024 10:33:13 +0200 Subject: core: New flag fields beta_compliance. * src/gpgme.h.in (struct _gpgme_subkey): Add field beta_compliance. (struct _gpgme_op_decrypt_result): Ditto. (struct _gpgme_signature): Ditto. * src/util.h (PARSE_COMPLIANCE_FLAGS): Handle the new 2023 value. * tests/run-decrypt.c: Append a "(beta)" to the vs-de compliance. * tests/run-keylist.c: Ditto. * tests/run-verify.c: Ditto. -- See GnuPG commit b287fb577587655559fefb90f7ed90c9a15dc6a3 --- src/gpgme.h.in | 15 ++++++++++++--- src/util.h | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gpgme.h.in b/src/gpgme.h.in index cdd945bf..e2c22362 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -586,8 +586,11 @@ struct _gpgme_subkey /* True if the private key is possessed by more than one person. */ unsigned int is_group_owned : 1; + /* The compliance mode (is_de_vs) has not yet been approved. */ + unsigned int beta_compliance : 1; + /* Internal to GPGME, do not use. */ - unsigned int _unused : 17; + unsigned int _unused : 16; /* Public key algorithm supported by this subkey. */ gpgme_pubkey_algo_t pubkey_algo; @@ -1455,8 +1458,11 @@ struct _gpgme_op_decrypt_result * protection. This might be an old but legitimate message. */ unsigned int legacy_cipher_nomdc : 1; + /* The compliance mode (is_de_vs) has not yet been approved. */ + unsigned int beta_compliance : 1; + /* Internal to GPGME, do not use. */ - int _unused : 28; + int _unused : 27; gpgme_recipient_t recipients; @@ -1645,8 +1651,11 @@ struct _gpgme_signature /* True if the signature is in compliance to the de-vs mode. */ unsigned int is_de_vs : 1; + /* The compliance mode (is_de_vs) has not yet been approved. */ + unsigned int beta_compliance : 1; + /* Internal to GPGME, do not use. */ - int _unused : 27; + int _unused : 26; gpgme_validity_t validity; gpgme_error_t validity_reason; diff --git a/src/util.h b/src/util.h index eedad610..03b800a0 100644 --- a/src/util.h +++ b/src/util.h @@ -230,6 +230,7 @@ int _gpgme_assuan_log_cb (assuan_context_t ctx, void *hook, { \ switch (comp_ul) \ { \ + case 2023: (result)->beta_compliance = 1; /*fallthru */ \ case 23: (result)->is_de_vs = 1; break; \ } \ } \ -- cgit v1.2.3