summaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-11-15 17:50:03 +0100
committerWerner Koch <wk@gnupg.org>2016-11-15 17:50:03 +0100
commitb47603a0ac24902c5bb000f8ef27cfb99aceeb81 (patch)
treeb9676f69fe176a53db7078e8009845ebd42f196c /g10/options.h
parentdoc: Add comment to make clear that KBNODE is deprecated. (diff)
downloadgnupg2-b47603a0ac24902c5bb000f8ef27cfb99aceeb81.tar.xz
gnupg2-b47603a0ac24902c5bb000f8ef27cfb99aceeb81.zip
gpg: Add new compliance mode "de-vs".
* g10/options.h (CO_DE_VS): New. (GNUPG): Also allow CO_DE_VS. * g10/gpg.c (oDE_VS): New. (parse_compliance_option): Add "de-vs". (set_compliance_option): Set "de-vs". * g10/misc.c (compliance_option_string): Return a description string. (compliance_failure): Ditto. * g10/keygen.c (ask_algo): Take care of CO_DE_VS. (get_keysize_range): Ditto. (ask_curve): Add new field to CURVES and trun flags into bit flags. Allow only Brainpool curves in CO_DE_VS mode. -- As of now this compliance mode only restricts the set of algorithms and curves which can be created. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--g10/options.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/options.h b/g10/options.h
index 19b855aa4..8ed2cdbf7 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -140,7 +140,7 @@ struct
enum
{
CO_GNUPG, CO_RFC4880, CO_RFC2440,
- CO_PGP6, CO_PGP7, CO_PGP8
+ CO_PGP6, CO_PGP7, CO_PGP8, CO_DE_VS
} compliance;
enum
{
@@ -327,7 +327,7 @@ EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode;
/* Compatibility flags. */
-#define GNUPG (opt.compliance==CO_GNUPG)
+#define GNUPG (opt.compliance==CO_GNUPG || opt.compliance==CO_DE_VS)
#define RFC2440 (opt.compliance==CO_RFC2440)
#define RFC4880 (opt.compliance==CO_RFC4880)
#define PGP6 (opt.compliance==CO_PGP6)