diff options
author | Werner Koch <[email protected]> | 2024-10-07 08:33:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-10-07 08:33:13 +0000 |
commit | 1a7bc88ee756df127761c90a4b66d885f0c9de74 (patch) | |
tree | ca5939b955db8d154076db34e1c65ee33a8aadd5 /src | |
parent | core: Allow GPGME_CREATE_ADSK also for gnupg 2.2.45 (diff) | |
download | gpgme-1a7bc88ee756df127761c90a4b66d885f0c9de74.tar.gz gpgme-1a7bc88ee756df127761c90a4b66d885f0c9de74.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gpgme.h.in | 15 | ||||
-rw-r--r-- | src/util.h | 1 |
2 files changed, 13 insertions, 3 deletions
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; @@ -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; \ } \ } \ |