changeset 16363:0586b56a818d

8171337: Check for correct SSLEngineImpl/SSLSocketImpl.setSSLParameters handshaker update method Reviewed-by: wetmore
author xuelei
date Tue, 20 Dec 2016 20:26:34 +0000
parents 188ce54a68f5
children f2e325a8d67c
files src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java	Tue Dec 20 11:46:09 2016 -0800
+++ b/src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java	Tue Dec 20 20:26:34 2016 +0000
@@ -2244,7 +2244,7 @@
         }
         applicationProtocols = params.getApplicationProtocols();
 
-        if ((handshaker != null) && !handshaker.started()) {
+        if ((handshaker != null) && !handshaker.activated()) {
             handshaker.setIdentificationProtocol(identificationProtocol);
             handshaker.setAlgorithmConstraints(algorithmConstraints);
             handshaker.setMaximumPacketSize(maximumPacketSize);
--- a/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java	Tue Dec 20 11:46:09 2016 -0800
+++ b/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java	Tue Dec 20 20:26:34 2016 +0000
@@ -2158,7 +2158,7 @@
                         Utilities.addToSNIServerNameList(serverNames, host);
 
                 if (!roleIsServer &&
-                        (handshaker != null) && !handshaker.started()) {
+                        (handshaker != null) && !handshaker.activated()) {
                     handshaker.setSNIServerNames(serverNames);
                 }
             }
@@ -2186,7 +2186,7 @@
         this.serverNames =
             Utilities.addToSNIServerNameList(this.serverNames, this.host);
 
-        if (!roleIsServer && (handshaker != null) && !handshaker.started()) {
+        if (!roleIsServer && (handshaker != null) && !handshaker.activated()) {
             handshaker.setSNIServerNames(serverNames);
         }
     }
@@ -2638,7 +2638,7 @@
 
         applicationProtocols = params.getApplicationProtocols();
 
-        if ((handshaker != null) && !handshaker.started()) {
+        if ((handshaker != null) && !handshaker.activated()) {
             handshaker.setIdentificationProtocol(identificationProtocol);
             handshaker.setAlgorithmConstraints(algorithmConstraints);
             handshaker.setMaximumPacketSize(maximumPacketSize);