mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
core: add new plugin "script" (scripts manager, replacing scripts weeget.py and script.pl)
This commit is contained in:
@@ -52,9 +52,7 @@ IF(GNUTLS_FOUND)
|
||||
LIST(APPEND LINK_LIBS ${GNUTLS_LIBRARY})
|
||||
ENDIF(GNUTLS_FOUND)
|
||||
|
||||
IF(GCRYPT_FOUND)
|
||||
LIST(APPEND LINK_LIBS gcrypt)
|
||||
ENDIF(GCRYPT_FOUND)
|
||||
LIST(APPEND LINK_LIBS gcrypt)
|
||||
|
||||
TARGET_LINK_LIBRARIES(irc ${LINK_LIBS})
|
||||
|
||||
|
||||
@@ -331,19 +331,8 @@ IRC_PROTOCOL_CALLBACK(cap)
|
||||
IRC_SERVER_OPTION_SASL_MECHANISM))
|
||||
{
|
||||
case IRC_SASL_MECHANISM_DH_BLOWFISH:
|
||||
#ifdef HAVE_GCRYPT
|
||||
irc_server_sendf (server, 0, NULL,
|
||||
"AUTHENTICATE DH-BLOWFISH");
|
||||
#else
|
||||
weechat_printf (server->buffer,
|
||||
_("%s%s: cannot authenticate with SASL "
|
||||
"and mechanism DH-BLOWFISH because "
|
||||
"WeeChat was not built with "
|
||||
"libgcrypt support"),
|
||||
weechat_prefix ("error"),
|
||||
IRC_PLUGIN_NAME);
|
||||
irc_server_sendf (server, 0, NULL, "CAP END");
|
||||
#endif
|
||||
break;
|
||||
case IRC_SASL_MECHANISM_EXTERNAL:
|
||||
irc_server_sendf (server, 0, NULL,
|
||||
|
||||
@@ -26,10 +26,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#ifdef HAVE_GCRYPT
|
||||
#include <gcrypt.h>
|
||||
#endif
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
@@ -91,7 +88,6 @@ irc_sasl_mechanism_dh_blowfish (const char *data_base64,
|
||||
const char *sasl_username,
|
||||
const char *sasl_password)
|
||||
{
|
||||
#ifdef HAVE_GCRYPT
|
||||
char *data, *answer, *ptr_answer, *answer_base64;
|
||||
unsigned char *ptr_data, *secret_bin, *public_bin;
|
||||
unsigned char *password_clear, *password_crypted;
|
||||
@@ -245,12 +241,4 @@ end:
|
||||
gcry_mpi_release (secret_mpi);
|
||||
|
||||
return answer_base64;
|
||||
#else
|
||||
/* make C compiler happy */
|
||||
(void) data_base64;
|
||||
(void) sasl_username;
|
||||
(void) sasl_password;
|
||||
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user