mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Check if an SSL certificate matches the hostname of the server we are connecting to
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5104 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0f47bb8197
commit
bb4ce4562b
3 changed files with 154 additions and 7 deletions
|
|
@ -224,7 +224,7 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
|
|||
port = server->connrec->proxy != NULL ?
|
||||
server->connrec->proxy_port : server->connrec->port;
|
||||
handle = server->connrec->use_ssl ?
|
||||
net_connect_ip_ssl(ip, port, own_ip, server->connrec->ssl_cert, server->connrec->ssl_pkey,
|
||||
net_connect_ip_ssl(ip, port, server->connrec->address, own_ip, server->connrec->ssl_cert, server->connrec->ssl_pkey,
|
||||
server->connrec->ssl_cafile, server->connrec->ssl_capath, server->connrec->ssl_verify) :
|
||||
net_connect_ip(ip, port, own_ip);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue