summaryrefslogtreecommitdiffstats
path: root/debian/patches/20fix_ssl_proxy_hostname_check
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/20fix_ssl_proxy_hostname_check')
-rw-r--r--debian/patches/20fix_ssl_proxy_hostname_check16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/20fix_ssl_proxy_hostname_check b/debian/patches/20fix_ssl_proxy_hostname_check
new file mode 100644
index 0000000..65da3ac
--- /dev/null
+++ b/debian/patches/20fix_ssl_proxy_hostname_check
@@ -0,0 +1,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));