diff options
author | Werner Koch <wk@gnupg.org> | 2022-11-28 08:21:59 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-11-28 08:21:59 +0100 |
commit | 2aacd843ad6bab248f7d2bfc727d44a7f95811e5 (patch) | |
tree | 941df44b6c1383686417675080f9fb91f3cf85b4 /g10/mainproc.c | |
parent | gpg: New option --list-filter (diff) | |
download | gnupg2-2aacd843ad6bab248f7d2bfc727d44a7f95811e5.tar.xz gnupg2-2aacd843ad6bab248f7d2bfc727d44a7f95811e5.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.
Diffstat (limited to '')
-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 f8f3c15bc..330ad10c5 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -726,7 +726,7 @@ proc_encrypted (CTX c, PACKET *pkt) } /* 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. */ |