aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-11-28 07:21:59 +0000
committerWerner Koch <[email protected]>2022-11-28 07:22:51 +0000
commit11f3232716716511ff9ea8c9c15c984ce4614d83 (patch)
treefd2a0cf66be2ea7ef8d2938a983cbc9c00092c2f
parentUpdate NEWS for 2.2.41 (diff)
downloadgnupg-11f3232716716511ff9ea8c9c15c984ce4614d83.tar.gz
gnupg-11f3232716716511ff9ea8c9c15c984ce4614d83.zip
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.
-rw-r--r--g10/mainproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 8e4d848bb..096f16c71 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -765,7 +765,7 @@ proc_encrypted (CTX c, PACKET *pkt)
result = GPG_ERR_NO_SECKEY;
/* 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. */
&& !opt.override_session_key
/* Check symmetric cipher. */