packages/net/noddos/patches/040-openssl-deprecated.patch
Rosen Penev 3945290c28 noddos: Fix compilation without deprecated OpenSSL APIs
Rearranged Makefile for consistency between packages.

Added PKG_BUILD_PARALLEL for faster compilation.

Removed ca-certificates dependency. ca-bundle is enough.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-06-27 00:36:15 -07:00

14 lines
428 B
Diff

--- a/src/opensslfingerprint.cxx
+++ b/src/opensslfingerprint.cxx
@@ -73,9 +73,11 @@ std::string getCertFingerprint(const std::string certfile, const bool Debug = fa
// closes file
close(fd);
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
// initialize OpenSSL
SSL_load_error_strings();
SSL_library_init();
+#endif
// creates BIO buffer
BIO * bio = BIO_new_mem_buf(buff, len);