diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-18 11:33:22 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-18 11:34:59 +0200 |
commit | e130ee7358564cfd5572ca0cf1ac6871425548ed (patch) | |
tree | a9ea85596b26b17a0710d4625a17a93017a3424d /src/plugins/irc/irc-sasl.c | |
parent | 80693dcea9b645e54d7ad246d28c2cba39da4e30 (diff) | |
download | weechat-e130ee7358564cfd5572ca0cf1ac6871425548ed.zip |
core: make GnuTLS a required dependency
Diffstat (limited to 'src/plugins/irc/irc-sasl.c')
-rw-r--r-- | src/plugins/irc/irc-sasl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-sasl.c b/src/plugins/irc/irc-sasl.c index 9938d2252..c2ab2e799 100644 --- a/src/plugins/irc/irc-sasl.c +++ b/src/plugins/irc/irc-sasl.c @@ -26,12 +26,10 @@ #include <arpa/inet.h> #include <gcrypt.h> -#ifdef HAVE_GNUTLS #include <gnutls/gnutls.h> #if LIBGNUTLS_VERSION_NUMBER >= 0x020a01 /* 2.10.1 */ #include <gnutls/abstract.h> #endif /* LIBGNUTLS_VERSION_NUMBER >= 0x020a01 */ -#endif /* HAVE_GNUTLS */ #include "../weechat-plugin.h" #include "irc.h" @@ -144,7 +142,7 @@ irc_sasl_mechanism_ecdsa_nist256p_challenge (struct t_irc_server *server, const char *sasl_username, const char *sasl_key) { -#if defined(HAVE_GNUTLS) && (LIBGNUTLS_VERSION_NUMBER >= 0x030015) /* 3.0.21 */ +#if LIBGNUTLS_VERSION_NUMBER >= 0x030015 /* 3.0.21 */ char *data, *string, *answer_base64; int length_data, length_username, length, ret; char *str_privkey; @@ -316,7 +314,7 @@ irc_sasl_mechanism_ecdsa_nist256p_challenge (struct t_irc_server *server, return answer_base64; -#else /* no gnutls or gnutls < 3.0.21 */ +#else /* GnuTLS < 3.0.21 */ /* make C compiler happy */ (void) data_base64; @@ -329,7 +327,7 @@ irc_sasl_mechanism_ecdsa_nist256p_challenge (struct t_irc_server *server, weechat_prefix ("error")); return NULL; -#endif /* defined(HAVE_GNUTLS) && (LIBGNUTLS_VERSION_NUMBER >= 0x030015) */ +#endif /* LIBGNUTLS_VERSION_NUMBER >= 0x030015 */ } /* |