File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
test/jdk/sun/security/ssl/SSLSessionImpl Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments