summaryrefslogtreecommitdiff
path: root/source/n/fetchmail/fetchmail.openssl111.diff
blob: 45516b6b4d6f1f031c16d35c21fce8138a84e3b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./socket.c.orig	2013-04-23 15:00:45.000000000 -0500
+++ ./socket.c	2018-09-26 11:56:14.957489314 -0500
@@ -1007,6 +1007,8 @@
         	SSL_use_RSAPrivateKey_file(_ssl_context[sock], mykey, SSL_FILETYPE_PEM);
 	}
 
+	SSL_set_tlsext_host_name(_ssl_context[sock],servercname);
+
 	if (SSL_set_fd(_ssl_context[sock], sock) == 0 
 	    || SSL_connect(_ssl_context[sock]) < 1) {
 		ERR_print_errors_fp(stderr);