diff options
| author | Ingo Klöcker <[email protected]> | 2026-04-21 10:46:17 +0200 |
|---|---|---|
| committer | Ingo Klöcker <[email protected]> | 2026-04-21 12:29:16 +0200 |
| commit | 2100e1fbdfeb9ecda00787032a8256938a113dde (patch) | |
| tree | 6eadb1804d0395e1fc2a0a979ee31153811c1a1b /src/encrypt.c | |
| parent | doc: Fix argument type of gpgme_set_sender (diff) | |
| download | gpgme-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 'src/encrypt.c')
| -rw-r--r-- | src/encrypt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/encrypt.c b/src/encrypt.c index 24132fda..ad8d4054 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -30,6 +30,7 @@ #include "debug.h" #include "context.h" #include "ops.h" +#include "util.h" typedef struct @@ -173,6 +174,10 @@ _gpgme_encrypt_status_handler (void *priv, gpgme_status_code_t code, opd->success_seen = 1; break; + case GPGME_STATUS_ENCRYPTION_COMPLIANCE_MODE: + PARSE_COMPLIANCE_FLAGS (args, &opd->result); + break; + default: break; } |
