1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

Check SSL certificates and use self-signed certificate to auto identify on IRC server (CertFP) (task #7492) (patch from kolter)

This commit is contained in:
Sebastien Helleu
2009-11-07 19:27:59 +01:00
parent 03e604c675
commit e561ab1ae3
35 changed files with 1129 additions and 68 deletions
@@ -3615,6 +3615,8 @@ weechat_lua_api_hook_connect (lua_State *L)
sock,
ipv6,
NULL, /* gnutls session */
NULL, /* gnutls callback */
0, /* gnutls DH key size */
local_hostname,
&weechat_lua_api_hook_connect_cb,
function,
@@ -3044,6 +3044,8 @@ XS (XS_weechat_api_hook_connect)
SvIV (ST (3)), /* sock */
SvIV (ST (4)), /* ipv6 */
NULL, /* gnutls session */
NULL, /* gnutls callback */
0, /* gnutls DH key size */
local_hostname,
&weechat_perl_api_hook_connect_cb,
function,
@@ -3217,6 +3217,8 @@ weechat_python_api_hook_connect (PyObject *self, PyObject *args)
sock,
ipv6,
NULL, /* gnutls session */
NULL, /* gnutls callback */
0, /* gnutls DH key size */
local_hostname,
&weechat_python_api_hook_connect_cb,
function,
@@ -3724,6 +3724,8 @@ weechat_ruby_api_hook_connect (VALUE class, VALUE proxy, VALUE address,
c_sock,
c_ipv6,
NULL, /* gnutls session */
NULL, /* gnutls callback */
0, /* gnutls DH key size */
c_local_hostname,
&weechat_ruby_api_hook_connect_cb,
c_function,
+3 -1
View File
@@ -926,6 +926,7 @@ script_api_hook_connect (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
const char *proxy, const char *address, int port,
int sock, int ipv6, void *gnutls_sess,
void *gnutls_cb, int gnutls_dhkey_size,
const char *local_hostname,
int (*callback)(void *data, int status,
const char *error,
@@ -941,7 +942,8 @@ script_api_hook_connect (struct t_weechat_plugin *weechat_plugin,
return NULL;
new_hook = weechat_hook_connect (proxy, address, port, sock, ipv6,
gnutls_sess, local_hostname, callback,
gnutls_sess, gnutls_cb, gnutls_dhkey_size,
local_hostname, callback,
new_script_callback);
if (!new_hook)
{
+2 -1
View File
@@ -169,7 +169,8 @@ extern struct t_hook *script_api_hook_connect (struct t_weechat_plugin *weechat_
int port,
int sock,
int ipv6,
void *gnutls_sess,
void *gnutls_sess, void *gnutls_cb,
int gnutls_dhkey_size,
const char *local_hostname,
int (*callback)(void *data,
int status,
@@ -3462,6 +3462,8 @@ weechat_tcl_api_hook_connect (ClientData clientData, Tcl_Interp *interp,
sock,
ipv6,
NULL, /* gnutls session */
NULL, /* gnutls callback */
0, /* gnutls DH key size */
local_hostname,
&weechat_tcl_api_hook_connect_cb,
function,