src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
Print this page
8171337 Check for correct SSLEngineImpl/SSLSocketImpl.setSSLParameters handshaker update method
*** 2156,2166 ****
if (!noSniUpdate && serverNames.isEmpty() && !noSniExtension) {
serverNames =
Utilities.addToSNIServerNameList(serverNames, host);
if (!roleIsServer &&
! (handshaker != null) && !handshaker.started()) {
handshaker.setSNIServerNames(serverNames);
}
}
return;
--- 2156,2166 ----
if (!noSniUpdate && serverNames.isEmpty() && !noSniExtension) {
serverNames =
Utilities.addToSNIServerNameList(serverNames, host);
if (!roleIsServer &&
! (handshaker != null) && !handshaker.activated()) {
handshaker.setSNIServerNames(serverNames);
}
}
return;
*** 2184,2194 ****
public synchronized void setHost(String host) {
this.host = host;
this.serverNames =
Utilities.addToSNIServerNameList(this.serverNames, this.host);
! if (!roleIsServer && (handshaker != null) && !handshaker.started()) {
handshaker.setSNIServerNames(serverNames);
}
}
/**
--- 2184,2194 ----
public synchronized void setHost(String host) {
this.host = host;
this.serverNames =
Utilities.addToSNIServerNameList(this.serverNames, this.host);
! if (!roleIsServer && (handshaker != null) && !handshaker.activated()) {
handshaker.setSNIServerNames(serverNames);
}
}
/**
*** 2636,2646 ****
sniMatchers = matchers;
}
applicationProtocols = params.getApplicationProtocols();
! if ((handshaker != null) && !handshaker.started()) {
handshaker.setIdentificationProtocol(identificationProtocol);
handshaker.setAlgorithmConstraints(algorithmConstraints);
handshaker.setMaximumPacketSize(maximumPacketSize);
handshaker.setApplicationProtocols(applicationProtocols);
if (roleIsServer) {
--- 2636,2646 ----
sniMatchers = matchers;
}
applicationProtocols = params.getApplicationProtocols();
! if ((handshaker != null) && !handshaker.activated()) {
handshaker.setIdentificationProtocol(identificationProtocol);
handshaker.setAlgorithmConstraints(algorithmConstraints);
handshaker.setMaximumPacketSize(maximumPacketSize);
handshaker.setApplicationProtocols(applicationProtocols);
if (roleIsServer) {