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

Fix verification of SSL certificates by calling gnutls verify callback (patch #7459)

This commit is contained in:
Gu1ll4um3r0m41n
2011-03-02 15:20:36 +01:00
committed by Sebastien Helleu
parent bf2f7d33ef
commit c265cad1c9
6 changed files with 240 additions and 190 deletions
+5 -1
View File
@@ -45,7 +45,7 @@ struct timeval;
*/
/* API version (used to check that plugin has same API and can be loaded) */
#define WEECHAT_PLUGIN_API_VERSION "20110102-01"
#define WEECHAT_PLUGIN_API_VERSION "20110302-01"
/* macros for defining plugin infos */
#define WEECHAT_PLUGIN_NAME(__name) \
@@ -127,6 +127,10 @@ struct timeval;
#define WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR 7
#define WEECHAT_HOOK_CONNECT_MEMORY_ERROR 8
/* action for gnutls callback: verify or set certificate */
#define WEECHAT_HOOK_CONNECT_GNUTLS_CB_VERIFY_CERT 0
#define WEECHAT_HOOK_CONNECT_GNUTLS_CB_SET_CERT 1
/* type of data for signal hooked */
#define WEECHAT_HOOK_SIGNAL_STRING "string"
#define WEECHAT_HOOK_SIGNAL_INT "int"