mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
4bd12b571e
commit
b47603a0ac
4 changed files with 52 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue