From 40d8e61118b537cd2794da1252e2ec29f976fa31 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 15 Oct 2011 15:50:40 +0200 Subject: irc: fix uninitialized key_type in struct gnutls_retr2_st (for gnutls >= 2.11.0) This was causing connection problem with following messages: irc: TLS handshake failed irc: error: Insufficient credentials for that request. --- src/plugins/irc/irc-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 9bab689e4..b747ef940 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -3162,6 +3162,7 @@ irc_server_gnutls_callback (void *data, gnutls_session_t tls_session, #if LIBGNUTLS_VERSION_NUMBER >= 0x020b00 tls_struct.cert_type = GNUTLS_CRT_X509; + tls_struct.key_type = GNUTLS_PRIVKEY_X509; #else tls_struct.type = GNUTLS_CRT_X509; #endif -- cgit v1.2.3