nixpkgs/pkgs/applications/emulators/wine/cert-path.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
567 B
Diff
Raw Normal View History

2020-11-23 16:01:00 +00:00
diff --git a/dlls/crypt32/unixlib.c b/dlls/crypt32/unixlib.c
2022-01-18 22:10:20 +00:00
index 7cb521eb98b..5804b88be84 100644
2020-11-23 16:01:00 +00:00
--- a/dlls/crypt32/unixlib.c
+++ b/dlls/crypt32/unixlib.c
2022-01-18 22:10:20 +00:00
@@ -654,6 +654,10 @@ static void load_root_certs(void)
2020-11-23 16:01:00 +00:00
for (i = 0; i < ARRAY_SIZE(CRYPT_knownLocations) && list_empty(&root_cert_list); i++)
import_certs_from_path( CRYPT_knownLocations[i], TRUE );
+
2020-11-23 16:01:00 +00:00
+ char *nix_cert_file = getenv("NIX_SSL_CERT_FILE");
+ if (nix_cert_file != NULL)
+ import_certs_from_path(nix_cert_file, TRUE);
}
2022-01-18 22:10:20 +00:00
static NTSTATUS enum_root_certs( void *args )