noddos: add compatibility with openssl 1.1
authorEneas U de Queiroz <redacted>
Tue, 29 May 2018 19:42:31 +0000 (16:42 -0300)
committerEneas U de Queiroz <redacted>
Tue, 29 May 2018 19:42:31 +0000 (16:42 -0300)
Adapted minor piece of code to the new API.

Signed-off-by: Eneas U de Queiroz <redacted>
net/noddos/Makefile
net/noddos/patches/010-openssl-1.1-fixes.patch [new file with mode: 0644]

index a69c9fb2a202a96305d6350cd290344e8756ea4c..b066caee70f69efe05abb7d623fe31935819cbb1 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 # Name and release number of this package
 PKG_NAME:=noddos
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPLv3
 PKG_MAINTAINER:=Steven Hessing <steven.hessing@gmail.com>
 
diff --git a/net/noddos/patches/010-openssl-1.1-fixes.patch b/net/noddos/patches/010-openssl-1.1-fixes.patch
new file mode 100644 (file)
index 0000000..965e2b0
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/src/opensslfingerprint.cxx
++++ b/src/opensslfingerprint.cxx
+@@ -110,7 +110,9 @@ std::string getCertFingerprint(const std
+       snprintf(&fpbuf[57], 3, "%02x", md[19]);
+       if (Debug) {
+-              syslog (LOG_DEBUG, "Cert: %s, fingerprint: %s", x->name, fpbuf);
++              char *namebuf = X509_NAME_oneline(X509_get_subject_name(x),NULL,0);
++              syslog (LOG_DEBUG, "Cert: %s, fingerprint: %s", namebuf, fpbuf);
++              free(namebuf);
+       }
+       std::string fp = fpbuf;
git clone https://git.99rst.org/PROJECT