summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-15 15:50:40 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-15 15:50:40 +0200
commit40d8e61118b537cd2794da1252e2ec29f976fa31 (patch)
tree02174ea329e19607b6143aebc680e4b8d7c0de71
parentac7c27949b8fb52fa2c7cb06fdf0d176607419b0 (diff)
downloadweechat-40d8e61118b537cd2794da1252e2ec29f976fa31.zip
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.
-rw-r--r--src/plugins/irc/irc-server.c1
1 files changed, 1 insertions, 0 deletions
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