Unverified Commit 14329eb0 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #200771 from helsinki-systems/upd/nss_lastest

parents 2224c27f 9930d351
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -12,13 +12,13 @@ index ad8f3b84e..74676d039 100644
     if (!lib) {
         PR_fprintf(PR_STDERR, "loading softokn3 failed");
diff --git nss/lib/pk11wrap/pk11load.c nss/lib/pk11wrap/pk11load.c
index 9e7a0a546..a0a23a1a4 100644
index 119c8c512..720d39ccc 100644
--- nss/lib/pk11wrap/pk11load.c
+++ nss/lib/pk11wrap/pk11load.c
@@ -466,6 +466,15 @@ secmod_LoadPKCS11Module(SECMODModule *mod, SECMODModule **oldModule)
          * unload the library if anything goes wrong from here on out...
          */
@@ -486,6 +486,15 @@ secmod_LoadPKCS11Module(SECMODModule *mod, SECMODModule **oldModule)
 #else
         library = PR_LoadLibrary(mod->dllName);
 #endif // defined(_WIN32)
+#ifndef NSS_STATIC_SOFTOKEN
+        if ((library == NULL) &&
+            !rindex(mod->dllName, PR_GetDirectorySeparator())) {
@@ -32,7 +32,7 @@ index 9e7a0a546..a0a23a1a4 100644
 
         if (library == NULL) {
diff --git nss/lib/util/secload.c nss/lib/util/secload.c
index 12efd2f75..8b74478f6 100644
index 1cebae4e2..9194bb761 100644
--- nss/lib/util/secload.c
+++ nss/lib/util/secload.c
@@ -70,9 +70,14 @@ loader_LoadLibInReferenceDir(const char* referencePath, const char* name)
+3 −3
Original line number Diff line number Diff line
@@ -41,10 +41,10 @@ stdenv.mkDerivation rec {

  patches = [
    # Based on http://patch-tracker.debian.org/patch/series/dl/nss/2:3.15.4-1/85_security_load.patch
    (if (lib.versionOlder version "3.77") then
      ./85_security_load.patch
    else
    (if (lib.versionOlder version "3.84") then
      ./85_security_load_3.77+.patch
    else
      ./85_security_load_3.85+.patch
    )
    ./fix-cross-compilation.patch
  ];
+2 −2
Original line number Diff line number Diff line
@@ -5,6 +5,6 @@
#       Example: nix-shell ./maintainers/scripts/update.nix --argstr package cacert

import ./generic.nix {
  version = "3.84";
  hash = "sha256-mjh//jUP8U8AHZQ/lswMBkiRVR1x4al6Xdv/5/EgeiU=";
  version = "3.85";
  hash = "sha256-r9nWRRCxFU3rvWyrNXHp/2SjNziY4DSD5Mhc2toT0pc=";
}