Home GnuPG
Diffusion GnuPG ee013c5350ce

gpg: New option --require-compliance.

Description

gpg: New option --require-compliance.

* g10/options.h (opt): Add field flags.require_compliance.
* g10/gpg.c (oRequireCompliance): New.
(opts): Add --require-compliance.
(main): Set option.
* g10/mainproc.c (proc_encrypted): Emit error if non de-vs compliant.
(check_sig_and_print): Ditto.
* g10/encrypt.c (encrypt_crypt): Ditto.

Note that in the --encrypt and --verify cased other checks may kick in
earlier than this new --require-compliance controlled one.

Details

Provenance
wernerAuthored on Mar 8 2022, 10:13 AM
Parents
rG49c6e5839452: gpg: fix --enarmor with zero length source file
Branches
Unknown
Tags
Unknown