From 3718caa64d1a9563e8078b649e736df771a25e77 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 6 Jan 2019 21:05:37 -0800 Subject: [PATCH] spoofer: Fix compilation without deprecated OpenSSL APIs Signed-off-by: Rosen Penev --- net/spoofer/Makefile | 2 +- net/spoofer/patches/010-openssl-deprecated.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 net/spoofer/patches/010-openssl-deprecated.patch diff --git a/net/spoofer/Makefile b/net/spoofer/Makefile index c2dc44b29..1c46ac6a9 100644 --- a/net/spoofer/Makefile +++ b/net/spoofer/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=spoofer PKG_VERSION:=1.4.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.caida.org/projects/spoofer/downloads diff --git a/net/spoofer/patches/010-openssl-deprecated.patch b/net/spoofer/patches/010-openssl-deprecated.patch new file mode 100644 index 000000000..1e3efc864 --- /dev/null +++ b/net/spoofer/patches/010-openssl-deprecated.patch @@ -0,0 +1,13 @@ +--- a/prober/spoofer-prober.cc ++++ b/prober/spoofer-prober.cc +@@ -2135,8 +2135,10 @@ int main(int argc, char **argv) { + #endif + #ifdef HAVE_LIBSSL + if (enableTLS) { ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + SSL_load_error_strings(); + SSL_library_init(); ++#endif + ssl_ctx = SSL_CTX_new(SSLv23_client_method()); + if (!ssl_ctx) { + ssl_err("SSL_CTX_new() failed");