Make sure TLSv1.3 is enabled when hardening

pull/214/head
M66B 11 months ago
parent e4840587a7
commit 99db06eecb

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

Loading…
Cancel
Save