aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2026-04-21 10:46:17 +0200
committerIngo Klöcker <[email protected]>2026-04-21 12:29:16 +0200
commit2100e1fbdfeb9ecda00787032a8256938a113dde (patch)
tree6eadb1804d0395e1fc2a0a979ee31153811c1a1b /tests
parentdoc: Fix argument type of gpgme_set_sender (diff)
downloadgpgme-2100e1fbdfeb9ecda00787032a8256938a113dde.tar.gz
gpgme-2100e1fbdfeb9ecda00787032a8256938a113dde.zip
Add flag fields is_de_vs and beta_compliance to encryption results
* src/encrypt.c (_gpgme_encrypt_status_handler): Handle the compliance status line. * src/gpgme.h.in (struct _gpgme_op_encrypt_result): Add fields is_de_vs and beta_compliance. (gpgme_status_code_t): Add status code for the encryption compliance status line. * src/status-table.c (status_table): Add encryption compliance status line. * tests/run-encrypt.c (print_encrypt_result): Print compliance. -- This allows checking whether the encrypt operation is in compliance with the VS-NfD criteria. GnuPG-bug-id: 6702
Diffstat (limited to 'tests')
-rw-r--r--tests/run-encrypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-encrypt.c b/tests/run-encrypt.c
index 5a10e593..a6c21d00 100644
--- a/tests/run-encrypt.c
+++ b/tests/run-encrypt.c
@@ -99,6 +99,8 @@ print_encrypt_result (gpgme_encrypt_result_t result)
gpgme_invalid_key_t invkey;
printf ("\nEncryption results\n");
+ printf ("Compliance de-vs ...: %s%s\n", result->is_de_vs? "yes":"no",
+ result->is_de_vs && result->beta_compliance? "(beta)":"");
for (invkey = result->invalid_recipients; invkey; invkey = invkey->next)
printf ("Encryption key `%s' not used: %s <%s>\n",
nonnull (invkey->fpr),