diff options
| author | Werner Koch <[email protected]> | 2022-03-08 09:13:44 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2022-03-08 18:26:01 +0000 |
| commit | ee013c5350ce6a5b3d4089753cb99a44802fdfa8 (patch) | |
| tree | d81bc0fc1d8a47e2230f35df87e6f4ca84cdb116 /g10/gpg.c | |
| parent | gpg: fix --enarmor with zero length source file (diff) | |
| download | gnupg-ee013c5350ce6a5b3d4089753cb99a44802fdfa8.tar.gz gnupg-ee013c5350ce6a5b3d4089753cb99a44802fdfa8.zip | |
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.
Diffstat (limited to 'g10/gpg.c')
| -rw-r--r-- | g10/gpg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -442,6 +442,7 @@ enum cmd_and_opt_values oChUid, oForceSignKey, oForbidGenKey, + oRequireCompliance, oNoop }; @@ -911,6 +912,7 @@ static gpgrt_opt_t opts[] = { ARGPARSE_s_n (oNoAutostart, "no-autostart", "@"), ARGPARSE_s_n (oUseKeyboxd, "use-keyboxd", "@"), ARGPARSE_s_n (oForbidGenKey, "forbid-gen-key", "@"), + ARGPARSE_s_n (oRequireCompliance, "require-compliance", "@"), /* Options which can be used in special circumstances. They are not * published and we hope they are never required. */ ARGPARSE_s_n (oUseOnlyOpenPGPCard, "use-only-openpgp-card", "@"), @@ -3731,6 +3733,10 @@ main (int argc, char **argv) mopt.forbid_gen_key = 1; break; + case oRequireCompliance: + opt.flags.require_compliance = 1; + break; + case oNoop: break; default: |
