diff options
author | Timo Sirainen <cras@irssi.org> | 2003-11-16 17:53:55 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-11-16 17:53:55 +0000 |
commit | 43b0d36ee182f48cd655187a63411045aa04c948 (patch) | |
tree | e0b965b871ab3563ab46ed87bf9d675b8e353bd8 /src/core/servers.c | |
parent | b1e2d7b5ef4837b8433c1bf5e68c629babe280d0 (diff) | |
download | irssi-43b0d36ee182f48cd655187a63411045aa04c948.zip |
Support for sending SSL certificate to server and optionally verify server's
certificate. See the -ssl_* options for /SERVER and /SERVER ADD. Patch by
Joel Eriksson <je-irssi@bitnux.com>.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3146 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/servers.c')
-rw-r--r-- | src/core/servers.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/servers.c b/src/core/servers.c index 887efd4b..85bc203b 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -188,7 +188,8 @@ 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) : + net_connect_ip_ssl(ip, port, 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 { handle = net_connect_unix(unix_socket); @@ -584,6 +585,11 @@ void server_connect_unref(SERVER_CONNECT_REC *conn) g_free_not_null(conn->username); g_free_not_null(conn->realname); + g_free_not_null(conn->ssl_cert); + g_free_not_null(conn->ssl_pkey); + g_free_not_null(conn->ssl_cafile); + g_free_not_null(conn->ssl_capath); + g_free_not_null(conn->channels); g_free_not_null(conn->away_reason); |