Debian Codegraph @

debian/patches/20fix_ssl_proxy_hostname_check

raw
1 Description: fix SSL CN check for proxy setup
2 Origin: Ubuntu, https://bugs.launchpad.net/ubuntu/+source/irssi/+bug/565182
3 Author: Steve Langasek
4
5 --- a/src/core/network-openssl.c
6 +++ b/src/core/network-openssl.c
7 @@ -236,6 +236,9 @@
8 {
9 long result;
10
11 + if (server->connrec->proxy != NULL)
12 + hostname = server->connrec->proxy;
13 +
14 result = SSL_get_verify_result(ssl);
15 if (result != X509_V_OK) {
16 g_warning("Could not verify TLS servers certificate: %s", X509_verify_cert_error_string(result));