1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-07 15:23:33 +02:00

Added old upstream sylpheed ebuild

This commit is contained in:
2023-07-06 16:46:34 +02:00
parent c202f5cf48
commit 6b5606cadb
5 changed files with 137 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
https://sylpheed.sraoss.jp/redmine/issues/306
Author: Antonio Ospite <ao2@ao2.it>
--- 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);