4 #include <openssl/engine.h>
5 #include <openssl/err.h>
6 #include <openssl/rsa.h>
7 +#include <openssl/bn.h>
10 #include "boinc_fcgi.h"
11 @@ -720,8 +721,10 @@ char *check_validity(
13 unsigned char md5_md[MD5_DIGEST_LENGTH], rbuf[2048];
15 +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
16 SSL_load_error_strings();
20 if (!is_file(origFile)) {
22 @@ -772,7 +775,9 @@ int cert_verify_file(
26 +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
29 if (!is_file(origFile)) return false;
30 FILE* of = boinc_fopen(origFile, "r");
31 if (!of) return false;