aboutsummaryrefslogtreecommitdiffstats
path: root/modules/m_challenge.c
diff options
context:
space:
mode:
authorGravatar Aaron Jones2026-03-22 03:00:11 +0000
committerGravatar Aaron Jones2026-03-22 03:02:35 +0000
commit7982a528ea178ee3b0bbe7e230b422a07b5f1b28 (patch)
tree5534a611f6a22b92a4659178c798cc8208a51e52 /modules/m_challenge.c
parentTidy up module loading code (diff)
downloadsolanum-amdj/unify-openssl-macro.tar.gz
solanum-amdj/unify-openssl-macro.tar.bz2
solanum-amdj/unify-openssl-macro.zip
Unify the preprocessor macro for OpenSSL support amdj/unify-openssl-macro
Commit 9a1ee1b64ed660164197 introduced support for building IRCd with Meson. It defines the "HAVE_OPENSSL" preprocessor macro for both IRCd and librb. While librb does use that macro, IRCd unfortunately uses only the "HAVE_LIBCRYPTO" macro instead, set implicitly by AC_CHECK_LIB from autotools. Make the autotools build system define HAVE_OPENSSL (to unify IRCd with librb) and change IRCd to use that.
Diffstat (limited to 'modules/m_challenge.c')
-rw-r--r--modules/m_challenge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/m_challenge.c b/modules/m_challenge.c
index 6ea23e94..76cccb44 100644
--- a/modules/m_challenge.c
+++ b/modules/m_challenge.c
@@ -24,7 +24,7 @@
#include "stdinc.h"
-#ifdef HAVE_LIBCRYPTO
+#ifdef HAVE_OPENSSL
# include <openssl/err.h>
# include <openssl/evp.h>
# include <openssl/pem.h>
@@ -50,7 +50,7 @@
#define CHALLENGE_EXPIRES 180 /* 180 seconds should be more than long enough */
#define CHALLENGE_SECRET_LENGTH 128 /* how long our challenge secret should be */
-#ifndef HAVE_LIBCRYPTO
+#ifndef HAVE_OPENSSL
static const char challenge_desc[] = "Does nothing as OpenSSL was not enabled.";
@@ -386,4 +386,4 @@ done:
return retval;
}
-#endif /* HAVE_LIBCRYPTO */
+#endif /* HAVE_OPENSSL */