packages/net/noddos/patches/010-openssl-1.1-fixes.patch
Eneas U de Queiroz b941c8d932 noddos: add compatibility with openssl 1.1
Adapted minor piece of code to the new API.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-05-29 16:42:31 -03:00

13 lines
444 B
Diff

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