1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 05:34:51 +00:00

Make sure TLSv1.3 is enabled when hardening

This commit is contained in:
M66B 2023-12-12 12:13:09 +01:00
parent e4840587a7
commit 99db06eecb

View file

@ -1143,7 +1143,7 @@ public class EmailService implements AutoCloseable {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
// Protocols
List<String> protocols = new ArrayList<>();
for (String protocol : sslSocket.getEnabledProtocols())
for (String protocol : sslSocket.getSupportedProtocols())
if (SSL_PROTOCOL_BLACKLIST_STRICT.contains(protocol))
Log.i("SSL disabling protocol=" + protocol);
else
@ -1162,7 +1162,7 @@ public class EmailService implements AutoCloseable {
} else if (ssl_harden) {
// Protocols
List<String> protocols = new ArrayList<>();
for (String protocol : sslSocket.getEnabledProtocols())
for (String protocol : sslSocket.getSupportedProtocols())
if (SSL_PROTOCOL_BLACKLIST.contains(protocol))
Log.i("SSL disabling protocol=" + protocol);
else