Browse Source

Merge pull request #6164 from cotequeiroz/noddos_openssl-1.1

noddos: add compatibility with openssl 1.1
lilik-openwrt-22.03
Hannu Nyman 7 years ago
committed by GitHub
parent
commit
496068bef9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions
  1. +1
    -1
      net/noddos/Makefile
  2. +13
    -0
      net/noddos/patches/010-openssl-1.1-fixes.patch

+ 1
- 1
net/noddos/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
# Name and release number of this package # Name and release number of this package
PKG_NAME:=noddos PKG_NAME:=noddos
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPLv3 PKG_LICENSE:=GPLv3
PKG_MAINTAINER:=Steven Hessing <steven.hessing@gmail.com> PKG_MAINTAINER:=Steven Hessing <steven.hessing@gmail.com>


+ 13
- 0
net/noddos/patches/010-openssl-1.1-fixes.patch View File

@ -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;

Loading…
Cancel
Save