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.

29 lines
701 B

  1. --- a/tcpiohandler.cc
  2. +++ b/tcpiohandler.cc
  3. @@ -369,8 +369,10 @@ public:
  4. }
  5. if (s_users.fetch_add(1) == 0) {
  6. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  7. ERR_load_crypto_strings();
  8. OpenSSL_add_ssl_algorithms();
  9. +#endif
  10. openssl_thread_setup();
  11. s_ticketsKeyIndex = SSL_CTX_get_ex_new_index(0, nullptr, nullptr, nullptr, nullptr);
  12. @@ -439,6 +441,7 @@ public:
  13. d_tlsCtx.reset();
  14. if (s_users.fetch_sub(1) == 1) {
  15. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  16. ERR_free_strings();
  17. EVP_cleanup();
  18. @@ -448,6 +451,7 @@ public:
  19. CONF_modules_unload(1);
  20. CRYPTO_cleanup_all_ex_data();
  21. +#endif
  22. openssl_thread_cleanup();
  23. }
  24. }