[Commits] [SCM] claws branch, master, updated. 3.18.0-338-g115af738f
paul at claws-mail.org
paul at claws-mail.org
Mon Mar 7 17:53:11 UTC 2022
The branch, master has been updated
via 115af738f9fd722de946c8afd8d3c29989fcc44b (commit)
from ea407c21bbaa955c0c17a00c25847cbe49ca4640 (commit)
Summary of changes:
src/oauth2.c | 2 ++
1 file changed, 2 insertions(+)
- Log -----------------------------------------------------------------
commit 115af738f9fd722de946c8afd8d3c29989fcc44b
Author: paul <paul at claws-mail.org>
Date: Mon Mar 7 17:52:23 2022 +0000
fix bug 4346, 'Error: Certificate is for invalid2.invalid, but connection is to imap.gmail.com'
patch by Alphonse
diff --git a/src/oauth2.c b/src/oauth2.c
index 88c814c09..e87ca68ce 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -247,6 +247,7 @@ int oauth2_obtain_tokens (Oauth2Service provider, OAUTH2Data *OAUTH2Data, const
return (1);
}
sock->ssl_cert_auto_accept = TRUE;
+ sock->use_tls_sni = TRUE;
sock_set_nonblocking_mode(sock, FALSE);
sock_set_io_timeout(10);
sock->gnutls_priority = "NORMAL:!VERS-SSL3.0:!VERS-TLS1.0:!VERS-TLS1.1";
@@ -398,6 +399,7 @@ gint oauth2_use_refresh_token (Oauth2Service provider, OAUTH2Data *OAUTH2Data)
return (1);
}
sock->ssl_cert_auto_accept = TRUE;
+ sock->use_tls_sni = TRUE;
sock_set_nonblocking_mode(sock, FALSE);
sock_set_io_timeout(10);
sock->gnutls_priority = "NORMAL:!VERS-SSL3.0:!VERS-TLS1.0:!VERS-TLS1.1";
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list