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:
parent
791c162c70
commit
11f3232716
@ -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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user