1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

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.
This commit is contained in:
Sebastien Helleu
2011-10-15 15:50:40 +02:00
parent ac7c27949b
commit 40d8e61118
+1
View File
@@ -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