Simplification

This commit is contained in:
M66B
2019-12-18 19:25:56 +01:00
parent 6cde2087d4
commit ab325935ac
2 changed files with 2 additions and 8 deletions

View File

@@ -455,14 +455,7 @@ public class MailService implements AutoCloseable {
SSLContext sslContext = SSLContext.getInstance("TLS");
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
try {
KeyStore ks = KeyStore.getInstance("AndroidCAStore");
ks.load(null, null);
tmf.init(ks);
} catch (IOException ex) {
Log.e(ex);
tmf.init((KeyStore) null);
}
tmf.init((KeyStore) null);
TrustManager[] tms = tmf.getTrustManagers();
if (tms == null || tms.length == 0 || !(tms[0] instanceof X509TrustManager)) {