diff options
author | kamil <kamil@pkgsrc.org> | 2018-03-05 09:16:28 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2018-03-05 09:16:28 +0000 |
commit | 965eaa9509f9d95699faf90c314a427b9c377b38 (patch) | |
tree | 57d0fa86191cf2256eaddd75807ced1e94817d67 /audio | |
parent | 7dfbbdc2913709c9e36ec26bdee3314cf4c33926 (diff) | |
download | pkgsrc-965eaa9509f9d95699faf90c314a427b9c377b38.tar.gz |
libshout: Support OpenSSL 1.1
Keep backwards-compatible support for OpenSSL 1.0.
Patch inspired by ArchLinux AUR: libshout-idjc-git.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libshout/distinfo | 3 | ||||
-rw-r--r-- | audio/libshout/patches/patch-src_tls.c | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/audio/libshout/distinfo b/audio/libshout/distinfo index a875810cf89..bb8c88e9558 100644 --- a/audio/libshout/distinfo +++ b/audio/libshout/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.8 2015/11/23 09:51:48 wiz Exp $ +$NetBSD: distinfo,v 1.9 2018/03/05 09:16:28 kamil Exp $ SHA1 (libshout-2.4.1.tar.gz) = cca5606f38e84a4c46223796b06cf7483abaa32f RMD160 (libshout-2.4.1.tar.gz) = 4dc076d0d12161202110b4fd53954314db5e6ebf SHA512 (libshout-2.4.1.tar.gz) = 4d4b958947e020de3330d49d39d59220fc89315f25f653a7456b9aa24ca9566fca30bb3d65e6348e79958656096b6b864ea8885157d24e55c8d84d6604670219 Size (libshout-2.4.1.tar.gz) = 516161 bytes +SHA1 (patch-src_tls.c) = 09e5ce5f0dc7c5a3581fe98b7245ea51daced303 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(); |