netstinky: fix no deprecated OpenSSL
authorRosen Penev <rosenp@gmail.com>
Sat, 20 Mar 2021 22:08:41 +0000 (15:08 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 26 Mar 2021 20:13:14 +0000 (13:13 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/netstinky/Makefile
net/netstinky/patches/010-openssl-deprecated.patch [new file with mode: 0644]

index 744a80ce3a93a06eadb1b04ba49b09dd9127818b..e51ca11ac67641997ea1a5c9199150587b51aae0 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netstinky
 PKG_VERSION:=1.0.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=nsids-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/wanduow/netstinky-ids/releases/download/v$(PKG_VERSION)/
diff --git a/net/netstinky/patches/010-openssl-deprecated.patch b/net/netstinky/patches/010-openssl-deprecated.patch
new file mode 100644 (file)
index 0000000..92bb423
--- /dev/null
@@ -0,0 +1,16 @@
+--- a/updates/ids_tls_update.c
++++ b/updates/ids_tls_update.c
+@@ -68,11 +68,13 @@ setup_context(const char *hostname, int
+     int rc;
+     unsigned long ssl_err = 0;
++#if OPENSSL_API_COMPAT < 0x10100000L
+     SSL_load_error_strings();
+     SSL_library_init();
+     OpenSSL_add_all_algorithms();
+     ERR_load_BIO_strings();
+     ERR_load_crypto_strings();
++#endif
+ #ifdef HAVE_TLS_METHOD
+     method = TLS_method();