This commit is contained in:
M66B 2019-12-17 10:41:59 +01:00
parent 0dd04d74a7
commit f123ea6704
1 changed files with 3 additions and 3 deletions

View File

@ -109,10 +109,10 @@ public class MailService implements AutoCloseable {
boolean trusted = false; boolean trusted = false;
String name = getDnsName(certificate); String name = getDnsName(certificate);
if (name != null && matches(server, name)) { if (name != null && matches(server, name))
Log.e("Certificate mismatch server=" + server + " name=" + name);
trusted = true; trusted = true;
} else
Log.e("Certificate mismatch server=" + server + " name=" + name);
if (getFingerPrint(certificate).equals(trustedFingerprint)) if (getFingerPrint(certificate).equals(trustedFingerprint))
trusted = true; trusted = true;