forked from I2P_Developers/i2p.i2p
SSL: Don't prohibit SSLv3 ciphers if that's all we have
This commit is contained in:
@@ -261,8 +261,15 @@ public class I2PSSLSocketFactory {
|
||||
* @since 0.9.16
|
||||
*/
|
||||
public static void setProtocolsAndCiphers(SSLServerSocket socket) {
|
||||
socket.setEnabledProtocols(selectProtocols(socket.getEnabledProtocols(),
|
||||
socket.getSupportedProtocols()));
|
||||
String[] p = selectProtocols(socket.getEnabledProtocols(),
|
||||
socket.getSupportedProtocols());
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
// if we left SSLv3 in there, we don't support TLS,
|
||||
// so we should't remove the SSL ciphers
|
||||
if (p.equals("SSLv3"))
|
||||
return;
|
||||
}
|
||||
socket.setEnabledProtocols(p);
|
||||
socket.setEnabledCipherSuites(selectCipherSuites(socket.getEnabledCipherSuites(),
|
||||
socket.getSupportedCipherSuites()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user