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.

21 lines
452 B

  1. diff --git a/src/tls.c b/src/tls.c
  2. index 4562c73..f946946 100644
  3. --- a/src/tls.c
  4. +++ b/src/tls.c
  5. @@ -63,12 +63,16 @@ static inline int tls_setup(shout_tls_t *tls)
  6. {
  7. SSL_METHOD *meth;
  8. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  9. SSL_library_init();
  10. SSL_load_error_strings();
  11. SSLeay_add_all_algorithms();
  12. SSLeay_add_ssl_algorithms();
  13. meth = TLSv1_client_method();
  14. +#else
  15. + meth = TLS_client_method();
  16. +#endif
  17. if (!meth)
  18. goto error;