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:
parent
e4840587a7
commit
99db06eecb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue