mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 02:52:20 +02:00
Porting some stuff to modern git version
This commit is contained in:
parent
9fcd69b9ef
commit
d5727e1648
5 changed files with 12 additions and 7 deletions
|
|
@ -551,8 +551,8 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_
|
|||
|
||||
return gchan;
|
||||
}
|
||||
|
||||
GIOChannel *net_connect_proxy_ssl(struct network_proxy const *proxy, char const *host, int port, IPADDR *ip, IPADDR *my_ip, const char *cert, const char *pkey, const char *cafile, const char *capath, gboolean verify)
|
||||
GIOChannel *net_connect_proxy_ssl(struct network_proxy const *proxy, char const *host, int port,
|
||||
IPADDR *ip, IPADDR *my_ip, SERVER_REC *server)
|
||||
{
|
||||
GIOChannel *handle, *ssl_handle;
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ int net_ip_compare(IPADDR *ip1, IPADDR *ip2);
|
|||
GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip);
|
||||
/* Connect to socket with ip address and SSL*/
|
||||
GIOChannel *net_connect_ip(IPADDR const *ip, int port, IPADDR *my_ip);
|
||||
GIOChannel *net_connect_proxy_ssl(struct network_proxy const *proxy, char const *host, int port, IPADDR *ip, IPADDR *my_ip, const char *cert, const char *pkey, const char *cafile, const char *capath, gboolean verify);
|
||||
GIOChannel *net_connect_proxy_ssl(struct network_proxy const *proxy, char const *host, int port, IPADDR *ip, IPADDR *my_ip, SERVER_REC *server);
|
||||
int irssi_ssl_handshake(GIOChannel *handle);
|
||||
/* Connect to socket with ip address */
|
||||
GIOChannel *net_connect_proxy(struct network_proxy const *proxy, char const *host, int port, IPADDR *ip, IPADDR *my_ip);
|
||||
|
|
|
|||
|
|
@ -227,10 +227,7 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
|
|||
net_connect_proxy_ssl(server->connrec->proxy,
|
||||
server->connrec->address, port,
|
||||
ip, own_ip,
|
||||
server->connrec->ssl_cert,
|
||||
server->connrec->ssl_pkey,
|
||||
server->connrec->ssl_cafile,
|
||||
server->connrec->ssl_capath, server->connrec->ssl_verify) :
|
||||
server->connrec) :
|
||||
net_connect_proxy(server->connrec->proxy,
|
||||
server->connrec->address, port,
|
||||
ip, own_ip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue