From 18551c6dc2c33f856d05053b27a1210c4c607cef Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 6 Apr 2021 09:30:24 +0200 Subject: [PATCH] gpg: Fix new pseudo option compliance_de_vs * g10/gpg.c (gpgconf_list): Take opt.compliance also in account. -- This makes it a one-stop check. --- g10/gpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/gpg.c b/g10/gpg.c index 5a32afe0e..08455fecb 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -1910,7 +1910,7 @@ gpgconf_list (const char *configfile) * 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)); + opt.compliance==CO_DE_VS && gnupg_rng_is_compliant (CO_DE_VS)); xfree (configfile_esc); }