diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index 528a8e4e06..cf9e7bdcbf 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -1153,6 +1153,15 @@ public class EmailService implements AutoCloseable { if (socket instanceof SSLSocket) { SSLSocket sslSocket = (SSLSocket) socket; + if (BuildConfig.TEST_RELEASE) { + List protocols = new ArrayList<>(Arrays.asList(sslSocket.getEnabledProtocols())); + List ciphers = new ArrayList<>(Arrays.asList(sslSocket.getEnabledCipherSuites())); + for (String protocol : sslSocket.getSupportedProtocols()) + Log.e("SSL " + protocol + "=" + protocols.contains(protocol)); + for (String cipher : sslSocket.getSupportedCipherSuites()) + Log.e("SSL " + cipher + "=" + protocols.contains(cipher)); + } + if (!secure) { sslSocket.setEnabledProtocols(sslSocket.getSupportedProtocols());