提交 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
s.print("RandomCookie: ");
svr_random.print(s);
int i;
s.print("Session ID: ");
s.println(sessionId);
......
......@@ -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.
......
......@@ -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
......
......@@ -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
......
......@@ -43,7 +43,6 @@ import javax.net.ssl.SSLSocketFactory;
*/
final public class SSLSocketFactoryImpl extends SSLSocketFactory {
private static SSLContextImpl defaultContext;
private SSLContextImpl context;
/**
......
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册