gpg: Add new compliance mode "de-vs".
authorWerner Koch <wk@gnupg.org>
Tue, 15 Nov 2016 16:50:03 +0000 (17:50 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 15 Nov 2016 16:50:03 +0000 (17:50 +0100)
commitb47603a0ac24902c5bb000f8ef27cfb99aceeb81
treeb9676f69fe176a53db7078e8009845ebd42f196c
parent4bd12b571e661c7f208cf8a96c32bbacfc8b2598
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>
g10/gpg.c
g10/keygen.c
g10/misc.c
g10/options.h