mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Enable 3DES by default
This commit is contained in:
parent
f3489df28c
commit
c63f2320da
1 changed files with 10 additions and 0 deletions
|
@ -800,6 +800,16 @@ public class EmailService implements AutoCloseable {
|
||||||
ciphers.add(cipher);
|
ciphers.add(cipher);
|
||||||
}
|
}
|
||||||
sslSocket.setEnabledCipherSuites(ciphers.toArray(new String[0]));
|
sslSocket.setEnabledCipherSuites(ciphers.toArray(new String[0]));
|
||||||
|
} else {
|
||||||
|
List<String> ciphers = new ArrayList<>();
|
||||||
|
ciphers.addAll(Arrays.asList(sslSocket.getEnabledCipherSuites()));
|
||||||
|
for (String cipher : sslSocket.getSupportedCipherSuites())
|
||||||
|
if (cipher.contains("3DES")) {
|
||||||
|
// Some servers support 3DES and RC4 only
|
||||||
|
Log.i("SSL enabling cipher=" + cipher);
|
||||||
|
ciphers.add(cipher);
|
||||||
|
}
|
||||||
|
sslSocket.setEnabledCipherSuites(ciphers.toArray(new String[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.i("SSL protocols=" + TextUtils.join(",", sslSocket.getEnabledProtocols()));
|
Log.i("SSL protocols=" + TextUtils.join(",", sslSocket.getEnabledProtocols()));
|
||||||
|
|
Loading…
Reference in a new issue