mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
gpgconf: Return a new pseudo option compliance_de_vs.
* tools/gpgconf-comp.c (gc_options_gpg): Add "compliance_de_vs". * g10/gpg.c (gpgconf_list): Return that pseudo option. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a50093893c
commit
9feffc03f3
@ -1906,6 +1906,11 @@ gpgconf_list (const char *configfile)
|
|||||||
the top of keygen.c */
|
the top of keygen.c */
|
||||||
es_printf ("default_pubkey_algo:%lu:\"%s:\n", GC_OPT_FLAG_DEFAULT,
|
es_printf ("default_pubkey_algo:%lu:\"%s:\n", GC_OPT_FLAG_DEFAULT,
|
||||||
get_default_pubkey_algo ());
|
get_default_pubkey_algo ());
|
||||||
|
/* This info only mode tells whether the we are running in de-vs
|
||||||
|
* compliance mode. This does not test all parameters but the basic
|
||||||
|
* conditions like a proper RNG and Libgcrypt. */
|
||||||
|
es_printf ("compliance_de_vs:%lu:%d:\n", GC_OPT_FLAG_DEFAULT,
|
||||||
|
gnupg_rng_is_compliant (CO_DE_VS));
|
||||||
|
|
||||||
xfree (configfile_esc);
|
xfree (configfile_esc);
|
||||||
}
|
}
|
||||||
|
@ -725,6 +725,10 @@ static gc_option_t gc_options_gpg[] =
|
|||||||
(GC_OPT_FLAG_ARG_OPT|GC_OPT_FLAG_NO_CHANGE), GC_LEVEL_INVISIBLE,
|
(GC_OPT_FLAG_ARG_OPT|GC_OPT_FLAG_NO_CHANGE), GC_LEVEL_INVISIBLE,
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
||||||
|
{ "compliance_de_vs",
|
||||||
|
(GC_OPT_FLAG_ARG_OPT|GC_OPT_FLAG_NO_CHANGE), GC_LEVEL_INVISIBLE,
|
||||||
|
NULL, NULL,
|
||||||
|
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
||||||
{ "trust-model",
|
{ "trust-model",
|
||||||
GC_OPT_FLAG_NONE, GC_LEVEL_INVISIBLE,
|
GC_OPT_FLAG_NONE, GC_LEVEL_INVISIBLE,
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user