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 29, 2024
1 parent 006fde1 commit 9a364b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions closed/make/modules/openjceplus/Lib.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ else ifeq ($(call isTargetOs, windows), true)
OPENJCEPLUS_JGSKIT_MAKE := jgskit.win64.mak
OPENJCEPLUS_JGSKIT_PLATFORM := win64
endif
else ifeq ($(call isTargetOs, macosx), true)
$(info OPENJDK_TARGET_OS is: $(OPENJDK_TARGET_OS))
$(info OPENJDK_TARGET_CPU is: $(OPENJDK_TARGET_CPU))
OPENJCEPLUS_JGSKIT_MAKE := jgskit.mac.mak
OPENJCEPLUS_JGSKIT_PLATFORM := aarch64_mac
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 9a364b2

Please sign in to comment.