|
|
@ -113,13 +113,13 @@ public class MailService implements AutoCloseable {
|
|
|
|
if (matches(server, name))
|
|
|
|
if (matches(server, name))
|
|
|
|
trusted = true;
|
|
|
|
trusted = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (getFingerPrint(certificate).equals(trustedFingerprint))
|
|
|
|
|
|
|
|
trusted = true;
|
|
|
|
|
|
|
|
|
|
|
|
if (!trusted)
|
|
|
|
if (!trusted)
|
|
|
|
Log.e("Certificate mismatch" +
|
|
|
|
Log.e("Certificate mismatch" +
|
|
|
|
" server=" + server + " names=" + TextUtils.join(",", names));
|
|
|
|
" server=" + server + " names=" + TextUtils.join(",", names));
|
|
|
|
|
|
|
|
|
|
|
|
if (getFingerPrint(certificate).equals(trustedFingerprint))
|
|
|
|
|
|
|
|
trusted = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Log.i("Is trusted? server=" + server + " trusted=" + trusted);
|
|
|
|
Log.i("Is trusted? server=" + server + " trusted=" + trusted);
|
|
|
|
return trusted;
|
|
|
|
return trusted;
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|