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));