summaryrefslogtreecommitdiffstats
path: root/debian/patches/20fix_ssl_proxy_hostname_check
blob: 65da3ac9cff1059ad8049a79a60a231e4ee0821c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix SSL CN check for proxy setup
Origin: Ubuntu, https://bugs.launchpad.net/ubuntu/+source/irssi/+bug/565182
Author: Steve Langasek

--- a/src/core/network-openssl.c
+++ b/src/core/network-openssl.c
@@ -236,6 +236,9 @@
 {
 	long result;
 
+	if (server->connrec->proxy != NULL)
+		hostname = server->connrec->proxy;
+
 	result = SSL_get_verify_result(ssl);
 	if (result != X509_V_OK) {
 		g_warning("Could not verify TLS servers certificate: %s", X509_verify_cert_error_string(result));