Skip to content

Commit

Permalink
Bundle OpenJCEPlus on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
JinhangZhang committed Oct 28, 2024
1 parent 006fde1 commit 161d409
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions closed/make/modules/openjceplus/Lib.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ else ifeq ($(call isTargetOs, windows), true)
OPENJCEPLUS_JGSKIT_MAKE := jgskit.win64.mak
OPENJCEPLUS_JGSKIT_PLATFORM := win64
endif
else ifeq ($(call isTargetOs, macosx), true)
OPENJCEPLUS_JGSKIT_PLATFORM := x86-64_osx
endif

ifeq (,$(OPENJCEPLUS_JGSKIT_PLATFORM))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public final class RestrictedSecurity {
supportedPlatformsNSS.put("OS", List.of("Linux"));

supportedPlatformsOpenJCEPlus.put("Arch", List.of("amd64", "ppc64", "s390x"));
supportedPlatformsOpenJCEPlus.put("OS", List.of("Linux", "AIX", "Windows"));
supportedPlatformsOpenJCEPlus.put("OS", List.of("Linux", "AIX", "Windows", "Mac"));

@SuppressWarnings("removal")
String[] props = AccessController.doPrivileged(
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/conf/security/java.security
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ RestrictedSecurity.NSS.140-2.securerandom.provider = SunPKCS11-NSS-FIPS
RestrictedSecurity.NSS.140-2.securerandom.algorithm = PKCS11
#endif

#if defined aix-ppc || defined linux-ppc || defined linux-s390 || defined linux-x86 || defined windows
#if defined aix-ppc || defined linux-ppc || defined linux-s390 || defined linux-x86 || defined windows || defined macosx
#
# Strict Restricted Security mode profile for FIPS 140-3. This policy represents only allowable
# approved cryptography in the OpenJCEPlusFIPS provider along with other non-cryptographic algorithms
Expand Down

0 comments on commit 161d409

Please sign in to comment.