mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
SSL debugging
This commit is contained in:
parent
34627add38
commit
d0fa70201b
1 changed files with 9 additions and 0 deletions
|
@ -1153,6 +1153,15 @@ public class EmailService implements AutoCloseable {
|
|||
if (socket instanceof SSLSocket) {
|
||||
SSLSocket sslSocket = (SSLSocket) socket;
|
||||
|
||||
if (BuildConfig.TEST_RELEASE) {
|
||||
List<String> protocols = new ArrayList<>(Arrays.asList(sslSocket.getEnabledProtocols()));
|
||||
List<String> 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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue