1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

gpg: Make --require-compliance work with out --status-fd

* g10/mainproc.c (proc_encrypted): Set complaince_de_vs also if
require-compliance is set.
--

Without this fix require-compliance would fail if no --status-fd was
used.
This commit is contained in:
Werner Koch 2022-11-28 08:21:59 +01:00
parent 791c162c70
commit 11f3232716
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -765,7 +765,7 @@ proc_encrypted (CTX c, PACKET *pkt)
result = GPG_ERR_NO_SECKEY; result = GPG_ERR_NO_SECKEY;
/* Compute compliance with CO_DE_VS. */ /* Compute compliance with CO_DE_VS. */
if (!result && is_status_enabled () if (!result && (is_status_enabled () || opt.flags.require_compliance)
/* Overriding session key voids compliance. */ /* Overriding session key voids compliance. */
&& !opt.override_session_key && !opt.override_session_key
/* Check symmetric cipher. */ /* Check symmetric cipher. */