8171337: Check for correct SSLEngineImpl/SSLSocketImpl.setSSLParameters handshaker update method
Reviewed-by: wetmore
This commit is contained in:
parent
2cae845615
commit
252d6991bc
@ -2244,7 +2244,7 @@ public final class SSLEngineImpl extends SSLEngine {
|
|||||||
}
|
}
|
||||||
applicationProtocols = params.getApplicationProtocols();
|
applicationProtocols = params.getApplicationProtocols();
|
||||||
|
|
||||||
if ((handshaker != null) && !handshaker.started()) {
|
if ((handshaker != null) && !handshaker.activated()) {
|
||||||
handshaker.setIdentificationProtocol(identificationProtocol);
|
handshaker.setIdentificationProtocol(identificationProtocol);
|
||||||
handshaker.setAlgorithmConstraints(algorithmConstraints);
|
handshaker.setAlgorithmConstraints(algorithmConstraints);
|
||||||
handshaker.setMaximumPacketSize(maximumPacketSize);
|
handshaker.setMaximumPacketSize(maximumPacketSize);
|
||||||
|
@ -2158,7 +2158,7 @@ public final class SSLSocketImpl extends BaseSSLSocketImpl {
|
|||||||
Utilities.addToSNIServerNameList(serverNames, host);
|
Utilities.addToSNIServerNameList(serverNames, host);
|
||||||
|
|
||||||
if (!roleIsServer &&
|
if (!roleIsServer &&
|
||||||
(handshaker != null) && !handshaker.started()) {
|
(handshaker != null) && !handshaker.activated()) {
|
||||||
handshaker.setSNIServerNames(serverNames);
|
handshaker.setSNIServerNames(serverNames);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2186,7 +2186,7 @@ public final class SSLSocketImpl extends BaseSSLSocketImpl {
|
|||||||
this.serverNames =
|
this.serverNames =
|
||||||
Utilities.addToSNIServerNameList(this.serverNames, this.host);
|
Utilities.addToSNIServerNameList(this.serverNames, this.host);
|
||||||
|
|
||||||
if (!roleIsServer && (handshaker != null) && !handshaker.started()) {
|
if (!roleIsServer && (handshaker != null) && !handshaker.activated()) {
|
||||||
handshaker.setSNIServerNames(serverNames);
|
handshaker.setSNIServerNames(serverNames);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2638,7 +2638,7 @@ public final class SSLSocketImpl extends BaseSSLSocketImpl {
|
|||||||
|
|
||||||
applicationProtocols = params.getApplicationProtocols();
|
applicationProtocols = params.getApplicationProtocols();
|
||||||
|
|
||||||
if ((handshaker != null) && !handshaker.started()) {
|
if ((handshaker != null) && !handshaker.activated()) {
|
||||||
handshaker.setIdentificationProtocol(identificationProtocol);
|
handshaker.setIdentificationProtocol(identificationProtocol);
|
||||||
handshaker.setAlgorithmConstraints(algorithmConstraints);
|
handshaker.setAlgorithmConstraints(algorithmConstraints);
|
||||||
handshaker.setMaximumPacketSize(maximumPacketSize);
|
handshaker.setMaximumPacketSize(maximumPacketSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user