Home GnuPG

w32: Use CSIDL_COMMON_APPDATA instead of /etc
995b870fd2b7Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

w32: Use CSIDL_COMMON_APPDATA instead of /etc

* src/hwfeatures.c [W32]: Include shlobj.h
(_gcry_get_sysconfdir): New.
(get_hwf_deny_file): New.  Use this instead of the HWF_DENY_FILE
macro.
* src/fips.c (get_fips_force_file): New. Use this instead of
FIPS_FORCE_FILE.
(_gcry_initialize_fips_mode) [W32]: Do not parse files under "/proc".
* random/random.c (get_random_conf_file): New.  Use instead of
RANDOM_CONF_FILE macro.

(cherry picked from commit d5e3cbfd8845a872d39f468da27a443cea4587e2)

Details