summary refs log tree commit diff
path: root/pkgs/applications/emulators/wine/cert-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/emulators/wine/cert-path.patch')
-rw-r--r--pkgs/applications/emulators/wine/cert-path.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/wine/cert-path.patch b/pkgs/applications/emulators/wine/cert-path.patch
new file mode 100644
index 00000000000..f0727f422f8
--- /dev/null
+++ b/pkgs/applications/emulators/wine/cert-path.patch
@@ -0,0 +1,15 @@
+diff --git a/dlls/crypt32/unixlib.c b/dlls/crypt32/unixlib.c
+index 7cb521eb98b..5804b88be84 100644
+--- a/dlls/crypt32/unixlib.c
++++ b/dlls/crypt32/unixlib.c
+@@ -654,6 +654,10 @@ static void load_root_certs(void)
+ 
+     for (i = 0; i < ARRAY_SIZE(CRYPT_knownLocations) && list_empty(&root_cert_list); i++)
+         import_certs_from_path( CRYPT_knownLocations[i], TRUE );
++
++    char *nix_cert_file = getenv("NIX_SSL_CERT_FILE");
++    if (nix_cert_file != NULL)
++        import_certs_from_path(nix_cert_file, TRUE);
+ }
+ 
+ static NTSTATUS enum_root_certs( void *args )