diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-08-02 15:03:45 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-08-04 19:12:49 -0700 |
commit | f45ce492fa03bc07febcb3611fbd0ac93d869433 (patch) | |
tree | ce1098966fa6cbc25b26cd299269179ba57c6d8a /net/boinc/patches | |
parent | 7f620401afb185abac26e5e186150f5b53ea6ed0 (diff) |
boinc: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/boinc/patches')
-rw-r--r-- | net/boinc/patches/010-openssl.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/boinc/patches/010-openssl.patch b/net/boinc/patches/010-openssl.patch new file mode 100644 index 000000000..afe68d6c0 --- /dev/null +++ b/net/boinc/patches/010-openssl.patch @@ -0,0 +1,31 @@ +--- a/lib/crypt.cpp ++++ b/lib/crypt.cpp +@@ -44,6 +44,7 @@ + #include <openssl/engine.h> + #include <openssl/err.h> + #include <openssl/rsa.h> ++#include <openssl/bn.h> + + #ifdef _USING_FCGI_ + #include "boinc_fcgi.h" +@@ -720,8 +721,10 @@ char *check_validity( + int rbytes; + unsigned char md5_md[MD5_DIGEST_LENGTH], rbuf[2048]; + ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL) + SSL_load_error_strings(); + SSL_library_init(); ++#endif + + if (!is_file(origFile)) { + return NULL; +@@ -772,7 +775,9 @@ int cert_verify_file( + fflush(stdout); + return false; + } ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL) + SSL_library_init(); ++#endif + if (!is_file(origFile)) return false; + FILE* of = boinc_fopen(origFile, "r"); + if (!of) return false; |