mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-30 01:33:34 +02:00
Added sylpheed 3.8 beta with additional debian patches
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From: Antonio Ospite <ao2@ao2.it>
|
||||
Date: Fri, 24 Aug 2018 10:46:04 +0200
|
||||
Subject: [PATCH v2] libsylph/ssl.c: Support SNI, some servers (imap.gmail.com)
|
||||
seem to require it
|
||||
|
||||
---
|
||||
libsylph/ssl.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/libsylph/ssl.c b/libsylph/ssl.c
|
||||
index 61e770f8..b4f6be0c 100644
|
||||
--- a/libsylph/ssl.c
|
||||
+++ b/libsylph/ssl.c
|
||||
@@ -262,6 +262,10 @@ gboolean ssl_init_socket_with_method(SockInfo *sockinfo, SSLMethod method)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
+#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
||||
+ SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname);
|
||||
+#endif
|
||||
+
|
||||
SSL_set_fd(sockinfo->ssl, sockinfo->sock);
|
||||
while ((ret = SSL_connect(sockinfo->ssl)) != 1) {
|
||||
err = SSL_get_error(sockinfo->ssl, ret);
|
||||
--
|
||||
2.19.0.rc2
|
||||
|
||||
Reference in New Issue
Block a user