summaryrefslogtreecommitdiff
path: root/audio/libshout/patches/patch-src_tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libshout/patches/patch-src_tls.c')
-rw-r--r--audio/libshout/patches/patch-src_tls.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/libshout/patches/patch-src_tls.c b/audio/libshout/patches/patch-src_tls.c
new file mode 100644
index 00000000000..30e1161949c
--- /dev/null
+++ b/audio/libshout/patches/patch-src_tls.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_tls.c,v 1.1 2018/03/05 09:16:28 kamil Exp $
+
+Support OpenSSL 1.1
+
+--- src/tls.c.orig 2015-06-18 04:27:45.000000000 +0000
++++ src/tls.c
+@@ -65,7 +65,11 @@ static inline int tls_setup(shout_tls_t
+
+ SSL_library_init();
+ SSL_load_error_strings();
++#if OPENSSL_VERSION_NUMBER >= 0x10100000
++ OpenSSL_add_all_algorithms();
++#else
+ SSLeay_add_all_algorithms();
++#endif
+ SSLeay_add_ssl_algorithms();
+
+ meth = TLSv1_client_method();