Skip to content

Commit

Permalink
Merge pull request #153 from rscs/issue-152-openssl-libraries
Browse files Browse the repository at this point in the history
152: Clean up libcrypto-compat declarations.
  • Loading branch information
eaescob authored May 28, 2020
2 parents 7bf8244 + 5b9ffb2 commit add275a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ if test "X$cf_enable_openssl" != "Xno" ; then
cf_enable_openssl="yes"
encryption="enabled"
AC_DEFINE(HAVE_ENCRYPTION_ON)
ENCRYPT_SRC="rc4.c dh.c"
ENCRYPT_SRC="rc4.c dh.c libcrypto-compat.c"
AC_SUBST(ENCRYPT_SRC)
else
AC_MSG_RESULT(not found. Please check your path.)
Expand Down
1 change: 1 addition & 0 deletions include/libcrypto-compat.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef LIBCRYPTO_COMPAT_H
#define LIBCRYPTO_COMPAT_H

#include <struct.h>
#ifdef USE_SSL

#if OPENSSL_VERSION_NUMBER < 0x10100000L
Expand Down
1 change: 0 additions & 1 deletion include/struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "libcrypto-compat.h"
#endif

#define REPORT_DO_DNS_ ":%s NOTICE AUTH :*** Looking up your hostname..."
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RES_SRC =

SOURCES = blalloc.c bsd.c channel.c clientlist.c clones.c confparse.c \
fdlist.c fds.c hash.c hide.c inet_addr.c ircd.c \
klines.c libcrypto-compat.c list.c m_nick.c m_rwho.c m_server.c m_services.c \
klines.c list.c m_nick.c m_rwho.c m_server.c m_services.c \
m_stats.c m_who.c match.c memcount.c modules.c packet.c parse.c pcre.c \
probability.c res.c s_auth.c s_bsd.c s_conf.c s_debug.c s_err.c \
s_misc.c s_numeric.c s_serv.c s_user.c sbuf.c scache.c send.c \
Expand Down
1 change: 0 additions & 1 deletion src/ircd.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include "hooks.h"
#include "fds.h"
#include "memcount.h"
#include "libcrypto-compat.h"
#include "spamfilter.h"

aMotd *motd;
Expand Down
3 changes: 1 addition & 2 deletions src/libcrypto-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
* https://www.openssl.org/source/license.html
*/

#ifdef USE_SSL

#include "struct.h"
#ifdef USE_SSL

#if OPENSSL_VERSION_NUMBER < 0x10100000L

Expand Down

0 comments on commit add275a

Please sign in to comment.