1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 01: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
+1
View File
@@ -19,6 +19,7 @@ Version 0.3.3 (under dev!)
* core: add hashtables with new functions in plugin API
* api: add function "string_expand_home", fix bug with replacement of home in
paths
* irc: fix display of local SSL certificate when it is sent to server
* irc: improve lag indicator: two colors (counting and finished), update item
even when pong has not been received, lag_min_show is now in milliseconds
* irc: use empty real name by default in config, instead of reading real name
+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