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.

14 lines
428 B

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