Niklas Poslovski
2023-08-20 227c920cc9ec2490a9a07240dc0bf5cea32edfb0
openjdk-18: Fix crypto

1 files added
1 files modified
16 ■■■■■ changed files
components/runtime/openjdk-18/Makefile 2 ●●● patch | view | raw | blame | history
components/runtime/openjdk-18/patches/sunpkcs11-solaris.cfg.patch 14 ●●●●● patch | view | raw | blame | history
components/runtime/openjdk-18/Makefile
@@ -23,7 +23,7 @@
OPENJDK_BUILD=    2.1
COMPONENT_NAME=        openjdk
COMPONENT_VERSION=    $(OPENJDK_VERSION).$(OPENJDK_UPDATE).$(OPENJDK_BUILD)
#COMPONENT_REVISION=    3
COMPONENT_REVISION=    1
COMPONENT_FMRI=    runtime/java/$(COMPONENT_NAME)$(OPENJDK_VERSION)
COMPONENT_SUMMARY=    Open-source implementation of the Java Platform, Standard Edition
COMPONENT_SRC=    jdk$(OPENJDK_VERSION)u-jdk-$(OPENJDK_VERSION).$(OPENJDK_UPDATE).$(OPENJDK_BUILD)-ga
components/runtime/openjdk-18/patches/sunpkcs11-solaris.cfg.patch
New file
@@ -0,0 +1,14 @@
diff -Nru jdk17u-jdk-17.0.7-ga.orig/src/jdk.crypto.cryptoki/solaris/conf/security/sunpkcs11-solaris.cfg jdk17u-jdk-17.0.7-ga/src/jdk.crypto.cryptoki/solaris/conf/security/sunpkcs11-solaris.cfg
--- jdk17u-jdk-17.0.7-ga.orig/src/jdk.crypto.cryptoki/solaris/conf/security/sunpkcs11-solaris.cfg    2023-08-19 17:26:03.629148428 +0200
+++ jdk17u-jdk-17.0.7-ga/src/jdk.crypto.cryptoki/solaris/conf/security/sunpkcs11-solaris.cfg    2023-08-19 17:29:14.784751746 +0200
@@ -19,5 +19,10 @@
 disabledMechanisms = {
   CKM_DSA_KEY_PAIR_GEN
   SecureRandom
+# the following mechanisms are disabled due to lack of digest cloning support
+  CKM_MD5
+  CKM_SHA256
+  CKM_SHA384
+  CKM_SHA512
 }