diff options
author | Werner Koch <wk@gnupg.org> | 2021-04-01 13:11:16 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-04-01 13:11:16 +0200 |
commit | a78475fbb7b60ca96137fbe179d8b939cfe2cd89 (patch) | |
tree | 322171ec8d1aceb1869e4dc52dd77ea066f2b9f8 /g10 | |
parent | common: Make the compliance check more robust. (diff) | |
download | gnupg2-a78475fbb7b60ca96137fbe179d8b939cfe2cd89.tar.xz gnupg2-a78475fbb7b60ca96137fbe179d8b939cfe2cd89.zip |
gpgconf: Return a new pseudo option compliance_de_vs.
* tools/gpgconf-comp.c (known_pseudo_options_gpg): Add
"compliance_de_vs".
* g10/gpg.c (gpgconf_list): Returh that pseudo option.
--
Of course this will always return false for this version of gnupg.
But as soon as this version has been approved we have everything ready
for a runtime check.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10')
-rw-r--r-- | g10/gpg.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1953,6 +1953,14 @@ gpgconf_list (void) the top of keygen.c */ es_printf ("default_pubkey_algo:%lu:\"%s:\n", GC_OPT_FLAG_DEFAULT, 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. AS of now we always + * return 0 because this version of gnupg has not yet received an + * appoval. */ + es_printf ("compliance_de_vs:%lu:%d:\n", GC_OPT_FLAG_DEFAULT, + 0 /*gnupg_rng_is_compliant (CO_DE_VS)*/); + } |