Disabled BouncyCastle for Gmail

master
M66B 3 months ago
parent 1ff5baba1b
commit d0fd8ccb83

@ -493,6 +493,8 @@ public class EmailService implements AutoCloseable {
boolean bc = prefs.getBoolean("bouncy_castle", false);
boolean fips = prefs.getBoolean("bc_fips", false);
if (host.endsWith(".gmail.com"))
bc = false;
factory = new SSLSocketFactoryService(
context, host, port, insecure, dane,
ssl_harden, strict, cert_strict, cert_transparency, check_names,
@ -717,7 +719,7 @@ public class EmailService implements AutoCloseable {
if (ex.getMessage() != null &&
(ex.getMessage().contains("Session invalidated") ||
ex.getMessage().contains("Command Error. 12")))
throw new AuthenticationFailedException(ex.getMessage(), ex);
throw new AuthenticationFailedException(ex.getMessage(), ex);
/*
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 74.125.140.108, 993; timeout 20000;

Loading…
Cancel
Save