mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Emit STATUS_FAILURE for --require-compliance errors
* g10/misc.c (compliance_failure): Do not fallback to CO_GNUPG. Print compliance failure error and status for CO_DE_VS. * g10/mainproc.c (proc_encrypted): Call compliance_failure in the require-compliance error case. * g10/encrypt.c (check_encryption_compliance): Ditto.
This commit is contained in:
parent
e1169e8f8a
commit
e05fb5ca37
3 changed files with 9 additions and 10 deletions
|
@ -567,10 +567,8 @@ check_encryption_compliance (DEK *dek, pk_list_t pk_list)
|
|||
&& opt.compliance == CO_DE_VS
|
||||
&& !compliant)
|
||||
{
|
||||
log_error (_("operation forced to fail due to"
|
||||
" unfulfilled compliance rules\n"));
|
||||
compliance_failure ();
|
||||
err = gpg_error (GPG_ERR_FORBIDDEN);
|
||||
g10_errors_seen = 1;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue