You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
833 B

  1. --- a/lib/crypt.cpp
  2. +++ b/lib/crypt.cpp
  3. @@ -44,6 +44,7 @@
  4. #include <openssl/engine.h>
  5. #include <openssl/err.h>
  6. #include <openssl/rsa.h>
  7. +#include <openssl/bn.h>
  8. #ifdef _USING_FCGI_
  9. #include "boinc_fcgi.h"
  10. @@ -720,8 +721,10 @@ char *check_validity(
  11. int rbytes;
  12. unsigned char md5_md[MD5_DIGEST_LENGTH], rbuf[2048];
  13. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
  14. SSL_load_error_strings();
  15. SSL_library_init();
  16. +#endif
  17. if (!is_file(origFile)) {
  18. return NULL;
  19. @@ -772,7 +775,9 @@ int cert_verify_file(
  20. fflush(stdout);
  21. return false;
  22. }
  23. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
  24. SSL_library_init();
  25. +#endif
  26. if (!is_file(origFile)) return false;
  27. FILE* of = boinc_fopen(origFile, "r");
  28. if (!of) return false;