src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java

Print this page
8171337 Check for correct SSLEngineImpl/SSLSocketImpl.setSSLParameters handshaker update method

*** 2242,2252 **** if (matchers != null) { sniMatchers = matchers; } applicationProtocols = params.getApplicationProtocols(); ! if ((handshaker != null) && !handshaker.started()) { handshaker.setIdentificationProtocol(identificationProtocol); handshaker.setAlgorithmConstraints(algorithmConstraints); handshaker.setMaximumPacketSize(maximumPacketSize); handshaker.setApplicationProtocols(applicationProtocols); if (roleIsServer) { --- 2242,2252 ---- if (matchers != null) { sniMatchers = matchers; } applicationProtocols = params.getApplicationProtocols(); ! if ((handshaker != null) && !handshaker.activated()) { handshaker.setIdentificationProtocol(identificationProtocol); handshaker.setAlgorithmConstraints(algorithmConstraints); handshaker.setMaximumPacketSize(maximumPacketSize); handshaker.setApplicationProtocols(applicationProtocols); if (roleIsServer) {