Skip to content

Commit df251da

Browse files
committed
Adapt to Java 21
1 parent fdc8f4a commit df251da

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/jdk/sun/security/ssl/SSLSessionImpl/ResumeChecksServer.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ private static class Server extends SSLContextTemplate {
197197
public int port;
198198
ExecutorService threadPool = Executors.newFixedThreadPool(1);
199199
// Stores the certs from the first connection in mode LOCAL_CERTS
200-
static X509CertImpl localCerts;
201200
// first connection to the server
202201
static boolean first = true;
203202

@@ -253,16 +252,6 @@ public void run() {
253252
first ? "ecdsa_secp521r1_sha512" :
254253
"ecdsa_secp384r1_sha384"));
255254
}
256-
case LOCAL_CERTS -> {
257-
if (!first) {
258-
// Add first session's certificate signature
259-
// algorithm to constraints so local certificates
260-
// can't be restored from the session ticket.
261-
params.setAlgorithmConstraints(
262-
new NoSig(X509CertImpl.toImpl(localCerts)
263-
.getSigAlgName()));
264-
}
265-
}
266255
default ->
267256
throw new AssertionError("Server: " +
268257
"unknown mode: " + testMode);
@@ -278,10 +267,6 @@ public void run() {
278267
out.flush();
279268
out.close();
280269
SSLSession session = sock.getSession();
281-
if (testMode == TestMode.LOCAL_CERTS && first) {
282-
localCerts = (X509CertImpl) session.
283-
getLocalCertificates()[0];
284-
}
285270
first = false;
286271
System.err.println("server socket closed: " + session);
287272
} catch (Exception e) {

0 commit comments

Comments
 (0)