aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-10-31 14:01:24 +0000
committerWerner Koch <[email protected]>2022-10-31 14:01:24 +0000
commit03f04dfb9a03f0b10dfd7e01ee06df7495b95667 (patch)
tree8b962520e15974ceaeb92a26cf4a49b79088f1d9 /g10/options.h
parentgpgsm: Also announce AES256-CBC in signatures. (diff)
downloadgnupg-03f04dfb9a03f0b10dfd7e01ee06df7495b95667.tar.gz
gnupg-03f04dfb9a03f0b10dfd7e01ee06df7495b95667.zip
gpg: New option --compatibility-flags
* g10/gpg.c (oCompatibilityFlags): New. (opts): Add option. (compatibility_flags): New list. (main): Set flags and print help. * g10/options.h (opt): Add field compatibility_flags. -- No flags are yet defined but it is good to have the framework.
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/g10/options.h b/g10/options.h
index 10e61ea4c..0cd2d52e7 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -308,6 +308,9 @@ struct
int no_symkey_cache; /* Disable the cache used for --symmetric. */
int use_keyboxd; /* Use the external keyboxd as storage backend. */
+
+ /* Compatibility flags (COMPAT_FLAG_xxxx). */
+ unsigned int compat_flags;
} opt;
/* CTRL is used to keep some global variables we currently can't
@@ -363,8 +366,11 @@ struct {
EXTERN_UNLESS_MAIN_MODULE int memory_debug_mode;
EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode;
+/* Compatibility flags */
+/* #define COMPAT_FOO 1 */
+
-/* Compatibility flags. */
+/* Compliance test macors. */
#define GNUPG (opt.compliance==CO_GNUPG || opt.compliance==CO_DE_VS)
#define RFC2440 (opt.compliance==CO_RFC2440)
#define RFC4880 (opt.compliance==CO_RFC4880)