diff options
Diffstat (limited to 'src/plugins/irc/irc.c')
-rw-r--r-- | src/plugins/irc/irc.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c index c07e5ce1d..ee9f24481 100644 --- a/src/plugins/irc/irc.c +++ b/src/plugins/irc/irc.c @@ -46,10 +46,6 @@ struct t_weechat_plugin *weechat_irc_plugin = NULL; struct t_hook *irc_hook_timer = NULL; struct t_hook *irc_hook_timer_check_away = NULL; -#ifdef HAVE_GNUTLS -gnutls_certificate_credentials gnutls_xcred; /* gnutls client credentials */ -#endif - /* * irc_signal_quit_cb: callback for "quit" signal @@ -89,13 +85,6 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) weechat_plugin = plugin; -#ifdef HAVE_GNUTLS - /* init GnuTLS */ - gnutls_global_init (); - gnutls_certificate_allocate_credentials (&gnutls_xcred); - gnutls_certificate_set_x509_trust_file (gnutls_xcred, "ca.pem", GNUTLS_X509_FMT_PEM); -#endif - if (!irc_config_init ()) return WEECHAT_RC_ERROR; @@ -168,11 +157,5 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) //irc_dcc_end (); irc_server_free_all (); -#ifdef HAVE_GNUTLS - /* GnuTLS end */ - gnutls_certificate_free_credentials (gnutls_xcred); - gnutls_global_deinit(); -#endif - return WEECHAT_RC_OK; } |