From a71ff1db8fd26afd02bc11d44deff1e6115c0801 Mon Sep 17 00:00:00 2001 From: JinhangZhang Date: Fri, 23 Aug 2024 14:27:00 -0400 Subject: [PATCH] u --- test/jdk/javax/net/ssl/FIPSFlag/FIPSFlagTests.java | 12 ++++++------ test/jdk/javax/net/ssl/FIPSFlag/TestFIPS.java | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/test/jdk/javax/net/ssl/FIPSFlag/FIPSFlagTests.java b/test/jdk/javax/net/ssl/FIPSFlag/FIPSFlagTests.java index 71f3af09f00..0038d53a4fb 100644 --- a/test/jdk/javax/net/ssl/FIPSFlag/FIPSFlagTests.java +++ b/test/jdk/javax/net/ssl/FIPSFlag/FIPSFlagTests.java @@ -24,17 +24,17 @@ /* * @test * @summary Test flags used for FIPS 140-2 and FIPS 140-3 - * @run + * @run main/othervm * -Dsemeru.fips=true - * -Dsemeru.comstomprofile=OpenJCEPlusFIPS.FIPS140-3 + * -Dsemeru.customprofile=OpenJCEPlusFIPS.FIPS140-3 * TestFIPS true 140-3 - * @run + * @run main/othervm * -Dsemeru.fips=true - * -Dsemeru.comstomprofile=OpenJCEPlusFIPS + * -Dsemeru.customprofile=OpenJCEPlusFIPS * TestFIPS true 140-3 - * @run + * @run main/othervm * -Dsemeru.fips=true * TestFIPS true 140-2 - * @run + * @run main/othervm * TestFIPS false */ \ No newline at end of file diff --git a/test/jdk/javax/net/ssl/FIPSFlag/TestFIPS.java b/test/jdk/javax/net/ssl/FIPSFlag/TestFIPS.java index 2878eee740f..04937bd985d 100644 --- a/test/jdk/javax/net/ssl/FIPSFlag/TestFIPS.java +++ b/test/jdk/javax/net/ssl/FIPSFlag/TestFIPS.java @@ -27,10 +27,13 @@ public class TestFIPS { private static final String SEMERU_FIPS = System.getProperty("semeru.fips"); + private static final String PROFILE = System.getProperty("semeru.customprofile"); public static void main(String[] args) throws Exception { + System.out.println("com.ibm.fips.mode: " + System.getProperty("com.ibm.fips.mode")); + for (Provider.Service service : Security.getProvider("SUN").getServices()) { System.out.println(" Service: " + service.getType() + " Algorithm: " + service.getAlgorithm() + " Class: " + service.getClassName()); }