diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2020-07-03 15:44:34 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2020-07-03 15:44:34 +0000 |
commit | cacd9fc917f4826710c73a4782970caae158cfb6 (patch) | |
tree | 20e77656a2ad81fe6c333f47127ec0cc0086bf8f /mail/sylpheed/files/patch-libsylph_ssl.c | |
parent | math/clblas: unbreak on powerpc64 head (diff) |
Provide a patch to support SNI.
This has been discussed upstream:
https://sylpheed.sraoss.jp/redmine/issues/306
While here:
- remove extra space after URL
- use options helpers
Obtained from: OpenBSD
Diffstat (limited to 'mail/sylpheed/files/patch-libsylph_ssl.c')
-rw-r--r-- | mail/sylpheed/files/patch-libsylph_ssl.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/sylpheed/files/patch-libsylph_ssl.c b/mail/sylpheed/files/patch-libsylph_ssl.c new file mode 100644 index 000000000000..1a61a1b5e7b6 --- /dev/null +++ b/mail/sylpheed/files/patch-libsylph_ssl.c @@ -0,0 +1,16 @@ +--- libsylph/ssl.c.orig 2017-02-02 08:02:49 UTC ++++ libsylph/ssl.c +@@ -258,6 +258,13 @@ gboolean ssl_init_socket_with_method(SockInfo *sockinf + return FALSE; + } + ++#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME ++ if (!SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname)) { ++ g_warning("Error setting servername extension\n"); ++ return FALSE; ++ } ++#endif ++ + SSL_set_fd(sockinfo->ssl, sockinfo->sock); + while ((ret = SSL_connect(sockinfo->ssl)) != 1) { + err = SSL_get_error(sockinfo->ssl, ret); |