提交 2cec93d5 编写于 作者: X xuelei

8003951: Removes unused variables in sun.security.ssl

Reviewed-by: xuelei
Contributed-by: NFlorian Weimer <fweimer@redhat.com>
上级 a03ef49f
...@@ -394,8 +394,6 @@ class ServerHello extends HandshakeMessage ...@@ -394,8 +394,6 @@ class ServerHello extends HandshakeMessage
s.print("RandomCookie: "); s.print("RandomCookie: ");
svr_random.print(s); svr_random.print(s);
int i;
s.print("Session ID: "); s.print("Session ID: ");
s.println(sessionId); s.println(sessionId);
......
...@@ -54,8 +54,6 @@ import static sun.security.ssl.SunJSSE.cryptoProvider; ...@@ -54,8 +54,6 @@ import static sun.security.ssl.SunJSSE.cryptoProvider;
*/ */
final class JsseJce { final class JsseJce {
private final static Debug debug = Debug.getInstance("ssl");
private final static ProviderList fipsProviderList; private final static ProviderList fipsProviderList;
// Flag indicating whether EC crypto is available. // Flag indicating whether EC crypto is available.
......
...@@ -82,9 +82,6 @@ class SSLServerSocketImpl extends SSLServerSocket ...@@ -82,9 +82,6 @@ class SSLServerSocketImpl extends SSLServerSocket
/* which protocol to use by default */ /* which protocol to use by default */
private ProtocolList enabledProtocols = null; private ProtocolList enabledProtocols = null;
/* could enabledCipherSuites ever complete handshaking? */
private boolean checkedEnabled = false;
// the endpoint identification protocol to use by default // the endpoint identification protocol to use by default
private String identificationProtocol = null; private String identificationProtocol = null;
...@@ -195,7 +192,6 @@ class SSLServerSocketImpl extends SSLServerSocket ...@@ -195,7 +192,6 @@ class SSLServerSocketImpl extends SSLServerSocket
@Override @Override
synchronized public void setEnabledCipherSuites(String[] suites) { synchronized public void setEnabledCipherSuites(String[] suites) {
enabledCipherSuites = new CipherSuiteList(suites); enabledCipherSuites = new CipherSuiteList(suites);
checkedEnabled = false;
} }
@Override @Override
......
...@@ -44,8 +44,6 @@ final class SSLSessionContextImpl implements SSLSessionContext { ...@@ -44,8 +44,6 @@ final class SSLSessionContextImpl implements SSLSessionContext {
private int cacheLimit; // the max cache size private int cacheLimit; // the max cache size
private int timeout; // timeout in seconds private int timeout; // timeout in seconds
private static final Debug debug = Debug.getInstance("ssl");
// package private // package private
SSLSessionContextImpl() { SSLSessionContextImpl() {
cacheLimit = getDefaultCacheLimit(); // default cache size cacheLimit = getDefaultCacheLimit(); // default cache size
......
...@@ -43,7 +43,6 @@ import javax.net.ssl.SSLSocketFactory; ...@@ -43,7 +43,6 @@ import javax.net.ssl.SSLSocketFactory;
*/ */
final public class SSLSocketFactoryImpl extends SSLSocketFactory { final public class SSLSocketFactoryImpl extends SSLSocketFactory {
private static SSLContextImpl defaultContext;
private SSLContextImpl context; private SSLContextImpl context;
/** /**
......
...@@ -346,7 +346,6 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager ...@@ -346,7 +346,6 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
} catch (IllegalArgumentException iae) { } catch (IllegalArgumentException iae) {
// unlikely to happen, just in case ... // unlikely to happen, just in case ...
if ((debug != null) && Debug.isOn("trustmanager")) { if ((debug != null) && Debug.isOn("trustmanager")) {
byte[] encoded = hostname.getEncoded();
System.out.println("Illegal server name: " + sniName); System.out.println("Illegal server name: " + sniName);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册