aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-04-06 07:30:24 +0000
committerWerner Koch <[email protected]>2021-04-06 07:30:24 +0000
commit18551c6dc2c33f856d05053b27a1210c4c607cef (patch)
tree74ec4ff5627def269070dc5c0b8c445a9f27e4e1
parentcommon: Make the compliance check more robust. (diff)
downloadgnupg-18551c6dc2c33f856d05053b27a1210c4c607cef.tar.gz
gnupg-18551c6dc2c33f856d05053b27a1210c4c607cef.zip
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.
-rw-r--r--g10/gpg.c2
1 files changed, 1 insertions, 1 deletions
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);
}