diff options
author | Werner Koch <[email protected]> | 2016-11-15 16:50:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-11-15 16:50:03 +0000 |
commit | b47603a0ac24902c5bb000f8ef27cfb99aceeb81 (patch) | |
tree | b9676f69fe176a53db7078e8009845ebd42f196c /g10/misc.c | |
parent | doc: Add comment to make clear that KBNODE is deprecated. (diff) | |
download | gnupg-b47603a0ac24902c5bb000f8ef27cfb99aceeb81.tar.gz gnupg-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 <[email protected]>
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index 4f9ece349..4b9ad990b 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1252,6 +1252,7 @@ compliance_option_string(void) case CO_PGP6: return "--pgp6"; case CO_PGP7: return "--pgp7"; case CO_PGP8: return "--pgp8"; + case CO_DE_VS: return "--compliance=de-vs"; } return ver; @@ -1287,6 +1288,10 @@ compliance_failure(void) case CO_PGP8: ver="PGP 8.x"; break; + + case CO_DE_VS: + ver="DE-VS applications"; + break; } log_info(_("this message may not be usable by %s\n"),ver); |