From 48197d31b671e92ca13625fc83348865ba67b170 Mon Sep 17 00:00:00 2001 From: mbalao Date: Wed, 5 Feb 2020 12:20:36 -0300 Subject: [PATCH] 8238555: Allow Initialization of SunPKCS11 with NSS when there are external FIPS modules in the NSSDB Reviewed-by: mullan, valeriep, andrew --- src/share/classes/sun/security/pkcs11/Secmod.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/share/classes/sun/security/pkcs11/Secmod.java b/src/share/classes/sun/security/pkcs11/Secmod.java index 1d2c5c0bd..94e4ada5f 100644 --- a/src/share/classes/sun/security/pkcs11/Secmod.java +++ b/src/share/classes/sun/security/pkcs11/Secmod.java @@ -404,10 +404,6 @@ public final class Secmod { } else { type = ModuleType.EXTERNAL; } - if (fips) { - throw new RuntimeException("FIPS flag set for non-internal " - + "module: " + libraryName + ", " + commonName); - } } // On Ubuntu the libsoftokn3 library is located in a subdirectory // of the system libraries directory. (Since Ubuntu 11.04.) -- GitLab