diff --git a/jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java b/jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java index e4b67ebf54a..1a54b556c73 100644 --- a/jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java +++ b/jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java @@ -394,8 +394,6 @@ class ServerHello extends HandshakeMessage s.print("RandomCookie: "); svr_random.print(s); - int i; - s.print("Session ID: "); s.println(sessionId); diff --git a/jdk/src/share/classes/sun/security/ssl/JsseJce.java b/jdk/src/share/classes/sun/security/ssl/JsseJce.java index 8bde7eae2bc..e22caece0e2 100644 --- a/jdk/src/share/classes/sun/security/ssl/JsseJce.java +++ b/jdk/src/share/classes/sun/security/ssl/JsseJce.java @@ -54,8 +54,6 @@ import static sun.security.ssl.SunJSSE.cryptoProvider; */ final class JsseJce { - private final static Debug debug = Debug.getInstance("ssl"); - private final static ProviderList fipsProviderList; // Flag indicating whether EC crypto is available. diff --git a/jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java b/jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java index ef2c3d4bd29..0e0edf18e4a 100644 --- a/jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java +++ b/jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java @@ -82,9 +82,6 @@ class SSLServerSocketImpl extends SSLServerSocket /* which protocol to use by default */ private ProtocolList enabledProtocols = null; - /* could enabledCipherSuites ever complete handshaking? */ - private boolean checkedEnabled = false; - // the endpoint identification protocol to use by default private String identificationProtocol = null; @@ -195,7 +192,6 @@ class SSLServerSocketImpl extends SSLServerSocket @Override synchronized public void setEnabledCipherSuites(String[] suites) { enabledCipherSuites = new CipherSuiteList(suites); - checkedEnabled = false; } @Override diff --git a/jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java b/jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java index d1c824c4a1f..04f0c015acc 100644 --- a/jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java +++ b/jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java @@ -44,8 +44,6 @@ final class SSLSessionContextImpl implements SSLSessionContext { private int cacheLimit; // the max cache size private int timeout; // timeout in seconds - private static final Debug debug = Debug.getInstance("ssl"); - // package private SSLSessionContextImpl() { cacheLimit = getDefaultCacheLimit(); // default cache size diff --git a/jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java b/jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java index e692d7598b8..bb66647bdf4 100644 --- a/jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java +++ b/jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java @@ -43,7 +43,6 @@ import javax.net.ssl.SSLSocketFactory; */ final public class SSLSocketFactoryImpl extends SSLSocketFactory { - private static SSLContextImpl defaultContext; private SSLContextImpl context; /** diff --git a/jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java b/jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java index ba230f1dec5..1137c0739af 100644 --- a/jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java +++ b/jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java @@ -346,7 +346,6 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager } catch (IllegalArgumentException iae) { // unlikely to happen, just in case ... if ((debug != null) && Debug.isOn("trustmanager")) { - byte[] encoded = hostname.getEncoded(); System.out.println("Illegal server name: " + sniName); } }