diff options
author | Werner Koch <[email protected]> | 2022-11-28 07:21:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-11-28 07:22:51 +0000 |
commit | 11f3232716716511ff9ea8c9c15c984ce4614d83 (patch) | |
tree | fd2a0cf66be2ea7ef8d2938a983cbc9c00092c2f | |
parent | Update NEWS for 2.2.41 (diff) | |
download | gnupg-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.c | 2 |
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. */ |