1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

Fix display of local SSL certificate when it is sent to IRC server

This commit is contained in:
Sebastien Helleu
2010-07-06 13:36:23 +02:00
parent a31d01a46d
commit 558ca510f7
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -2706,11 +2706,11 @@ irc_server_gnutls_callback (void *data, gnutls_session_t tls_session,
#if LIBGNUTLS_VERSION_NUMBER >= 0x010706
/* client certificate info */
#if LIBGNUTLS_VERSION_NUMBER < 0x020400
rinfo = gnutls_x509_crt_print (cert_temp,
rinfo = gnutls_x509_crt_print (server->tls_cert,
GNUTLS_X509_CRT_ONELINE,
&cinfo);
#else
rinfo = gnutls_x509_crt_print (cert_temp,
rinfo = gnutls_x509_crt_print (server->tls_cert,
GNUTLS_CRT_PRINT_ONELINE,
&cinfo);
#endif
@@ -2723,7 +2723,7 @@ irc_server_gnutls_callback (void *data, gnutls_session_t tls_session,
gnutls_free (cinfo.data);
}
#endif
memcpy(answer, &tls_struct, sizeof (gnutls_retr_st));
memcpy (answer, &tls_struct, sizeof (gnutls_retr_st));
free (cert_str);
}
else