SSLSocket socket =
<BUG>(SSLSocket) ssf.createSocket(_socket_, ip, port, true);
</BUG>
socket.setEnableSessionCreation(true);
<BUG>socket.setUseClientMode(true);
if (protocols != null) {</BUG>
socket.setEnabledProtocols(protocols);
}
if (suites != null) {
socket.setEnabledCipherSuites(suites);

SSLSocket socket =
(SSLSocket) ssf.createSocket(_socket_, host, port, true);
socket.setEnableSessionCreation(true);
socket.setUseClientMode(true);
if (tlsEndpointChecking) {
SSLSocketUtils.enableEndpointNameVerification(socket);
}
if (protocols != null) {
socket.setEnabledProtocols(protocols);
}
if (suites != null) {
socket.setEnabledCipherSuites(suites);
