summaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-03-08 10:13:44 +0100
committerWerner Koch <wk@gnupg.org>2022-03-08 19:26:01 +0100
commitee013c5350ce6a5b3d4089753cb99a44802fdfa8 (patch)
treed81bc0fc1d8a47e2230f35df87e6f4ca84cdb116 /g10/options.h
parentgpg: fix --enarmor with zero length source file (diff)
downloadgnupg2-ee013c5350ce6a5b3d4089753cb99a44802fdfa8.tar.xz
gnupg2-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 '')
-rw-r--r--g10/options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index 8df463ed4..10e61ea4c 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -269,6 +269,9 @@ struct
/* The next flag is set internally iff IMPORT_CLEAN has
* been set by the user and is not the default value. */
unsigned int expl_import_clean:1;
+ /* Fail if an operation can't be done in the requested compliance
+ * mode. */
+ unsigned int require_compliance:1;
} flags;
/* Linked list of ways to find a key if the key isn't on the local