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.

24 lines
421 B

  1. --- a/src/openssl.c
  2. +++ b/src/openssl.c
  3. @@ -25,17 +25,21 @@
  4. int ssl_init(void)
  5. {
  6. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  7. SSL_library_init();
  8. SSL_load_error_strings();
  9. OpenSSL_add_all_algorithms();
  10. +#endif
  11. return 0;
  12. }
  13. void ssl_exit(void)
  14. {
  15. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  16. ERR_free_strings();
  17. EVP_cleanup();
  18. +#endif
  19. }
  20. static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)