From 2100e1fbdfeb9ecda00787032a8256938a113dde Mon Sep 17 00:00:00 2001 From: Ingo Klöcker Date: Tue, 21 Apr 2026 10:46:17 +0200 Subject: 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 --- src/encrypt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/encrypt.c') 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; } -- cgit