Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
26
fips.patch
26
fips.patch
@ -130,7 +130,7 @@
|
||||
BASIC_JDKLIB_LIBS_TARGET=""
|
||||
--- a/make/autoconf/spec.gmk.in
|
||||
+++ b/make/autoconf/spec.gmk.in
|
||||
@@ -873,6 +873,11 @@ INSTALL_SYSCONFDIR=@sysconfdir@
|
||||
@@ -874,6 +874,11 @@ INSTALL_SYSCONFDIR=@sysconfdir@
|
||||
# Libraries
|
||||
#
|
||||
|
||||
@ -2015,7 +2015,7 @@
|
||||
#
|
||||
# Controls compatibility mode for JKS and PKCS12 keystore types.
|
||||
#
|
||||
@@ -332,6 +384,13 @@ package.definition=sun.misc.,\
|
||||
@@ -336,6 +388,13 @@ package.definition=sun.misc.,\
|
||||
#
|
||||
security.overridePropertiesFile=true
|
||||
|
||||
@ -2932,7 +2932,7 @@
|
||||
private static final String PUBLIC = "public";
|
||||
private static final String PRIVATE = "private";
|
||||
private static final String SECRET = "secret";
|
||||
@@ -414,9 +419,10 @@ abstract class P11Key implements Key, Length {
|
||||
@@ -401,9 +406,10 @@ abstract class P11Key implements Key, Length {
|
||||
new CK_ATTRIBUTE(CKA_EXTRACTABLE),
|
||||
});
|
||||
|
||||
@ -2945,7 +2945,7 @@
|
||||
|
||||
return switch (algorithm) {
|
||||
case "RSA" -> P11RSAPrivateKeyInternal.of(session, keyID, algorithm,
|
||||
@@ -468,7 +474,8 @@ abstract class P11Key implements Key, Length {
|
||||
@@ -455,7 +461,8 @@ abstract class P11Key implements Key, Length {
|
||||
|
||||
public String getFormat() {
|
||||
token.ensureValid();
|
||||
@ -2955,6 +2955,11 @@
|
||||
return null;
|
||||
} else {
|
||||
return "RAW";
|
||||
@@ -1625,4 +1632,3 @@ final class SessionKeyRef extends PhantomReference<P11Key> {
|
||||
this.clear();
|
||||
}
|
||||
}
|
||||
-
|
||||
--- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java
|
||||
+++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java
|
||||
@@ -26,6 +26,9 @@
|
||||
@ -2965,7 +2970,7 @@
|
||||
+import java.lang.invoke.MethodHandles;
|
||||
+import java.lang.invoke.MethodType;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import java.security.*;
|
||||
@@ -42,10 +45,12 @@ import javax.security.auth.callback.PasswordCallback;
|
||||
|
||||
@ -3050,7 +3055,7 @@
|
||||
return new SunPKCS11(new Config(newConfigName));
|
||||
}
|
||||
});
|
||||
@@ -325,9 +386,19 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
@@ -336,9 +397,19 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
// request multithreaded access first
|
||||
initArgs.flags = CKF_OS_LOCKING_OK;
|
||||
PKCS11 tmpPKCS11;
|
||||
@ -3072,7 +3077,7 @@
|
||||
} catch (PKCS11Exception e) {
|
||||
if (debug != null) {
|
||||
debug.println("Multi-threaded initialization failed: " + e);
|
||||
@@ -342,8 +413,9 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
@@ -353,8 +424,9 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
} else {
|
||||
initArgs.flags = 0;
|
||||
}
|
||||
@ -3084,7 +3089,7 @@
|
||||
}
|
||||
p11 = tmpPKCS11;
|
||||
|
||||
@@ -1388,11 +1460,52 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
@@ -1400,11 +1472,52 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -3137,7 +3142,7 @@
|
||||
try {
|
||||
return newInstance0(param);
|
||||
} catch (PKCS11Exception e) {
|
||||
@@ -1749,6 +1862,9 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
@@ -1761,6 +1874,9 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
try {
|
||||
session = token.getOpSession();
|
||||
p11.C_Logout(session.id());
|
||||
@ -3251,7 +3256,7 @@
|
||||
}
|
||||
if (omitInitialize == false) {
|
||||
try {
|
||||
@@ -2012,4 +2040,194 @@ static class SynchronizedPKCS11 extends PKCS11 {
|
||||
@@ -1976,4 +2004,194 @@ static class SynchronizedPKCS11 extends PKCS11 {
|
||||
super.C_GenerateRandom(hSession, randomData);
|
||||
}
|
||||
}
|
||||
@ -4161,4 +4166,3 @@
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package java-21-openjdk
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -33,8 +33,8 @@
|
||||
# Standard JPackage naming and versioning defines.
|
||||
%global featurever 21
|
||||
%global interimver 0
|
||||
%global updatever 7
|
||||
%global buildver 6
|
||||
%global updatever 4
|
||||
%global buildver 7
|
||||
%global openjdk_repo jdk21u
|
||||
%global openjdk_tag jdk-%{featurever}%{?updatever:.%{interimver}.%{updatever}}%{?patchver:.%{patchver}}+%{buildver}
|
||||
%global openjdk_dir %{openjdk_repo}-jdk-%{featurever}%{?updatever:.%{interimver}.%{updatever}}%{?patchver:.%{patchver}}-%{buildver}
|
||||
@ -152,7 +152,6 @@ Patch3: java-atk-wrapper-security.patch
|
||||
Patch4: PStack-808293.patch
|
||||
# Allow multiple initialization of PKCS11 libraries
|
||||
Patch5: multiple-pkcs11-library-init.patch
|
||||
Patch7: reproducible-directory-mtime.patch
|
||||
# Fix instantiation of VM on ZERO
|
||||
Patch8: zero-ranges.patch
|
||||
Patch9: reproducible-javadoc-timestamp.patch
|
||||
@ -390,7 +389,6 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
|
||||
%patch -P 3 -p1
|
||||
%patch -P 4 -p1
|
||||
%patch -P 5 -p1
|
||||
%patch -P 7 -p1
|
||||
%patch -P 8 -p1
|
||||
%patch -P 9 -p1
|
||||
%patch -P 10 -p1
|
||||
|
BIN
jdk-21.0.4+7.tar.gz
(Stored with Git LFS)
Normal file
BIN
jdk-21.0.4+7.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5debf63c076409bad7a655de549241c038ae99cd8be80d00183eed5d1d7aeac
|
||||
size 113300326
|
@ -1,17 +0,0 @@
|
||||
diff --git a/src/java.base/share/classes/java/io/File.java b/src/java.base/share/classes/java/io/File.java
|
||||
index 652f28074cc..63a6c2f2831 100644
|
||||
--- a/src/java.base/share/classes/java/io/File.java
|
||||
+++ b/src/java.base/share/classes/java/io/File.java
|
||||
@@ -1378,7 +1378,11 @@ public class File
|
||||
if (isInvalid()) {
|
||||
return false;
|
||||
}
|
||||
- return FS.createDirectory(this);
|
||||
+ boolean result = FS.createDirectory(this);
|
||||
+ if ( result && System.getenv("SOURCE_DATE_EPOCH") != null ) {
|
||||
+ FS.setLastModifiedTime(this, 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
|
||||
+ }
|
||||
+ return result;
|
||||
}
|
||||
|
||||
/**
|
Loading…
x
Reference in New Issue
Block a user