diff options
author | Werner Koch <wk@gnupg.org> | 2024-12-04 11:02:33 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-12-04 11:02:33 +0100 |
commit | 7b0be541a994c3cb109f671632c24140edc715ae (patch) | |
tree | dd4c3a7edcc6a56d75f2dbd46a26f1b32e7aa717 | |
parent | po: Update Portuguese Translation. (diff) | |
download | gnupg2-7b0be541a994c3cb109f671632c24140edc715ae.tar.xz gnupg2-7b0be541a994c3cb109f671632c24140edc715ae.zip |
w32: Introduce Registry key GNUPG_ASSUME_COMPLIANCE.
* common/compliance.c (get_assumed_de_vs_compliance): Also consider a
registry entry.
--
On Windows it is easier to set the registry key than to use an envvar.
-rw-r--r-- | common/compliance.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/compliance.c b/common/compliance.c index f37f5a013..6c271c199 100644 --- a/common/compliance.c +++ b/common/compliance.c @@ -61,6 +61,18 @@ get_assumed_de_vs_compliance (void) { const char *s = getenv ("GNUPG_ASSUME_COMPLIANCE"); value = (s && !strcmp (s, "de-vs")); +#ifdef HAVE_W32_SYSTEM + if (!value) + { + char *tmp; + tmp = read_w32_registry_string (NULL, + gnupg_registry_dir (), + "GNUPG_ASSUME_COMPLIANCE"); + if (tmp && !strcmp (tmp, "de-vs")) + value = 1; + xfree (tmp); + } +#endif /* W32 */ } return value > 0; #endif |