pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/gpac Fix build with OpenSSL 1.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/420433e29e55
branches:  trunk
changeset: 347343:420433e29e55
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 10 21:16:40 2020 +0000

description:
Fix build with OpenSSL 1.1.

diffstat:

 multimedia/gpac/distinfo                             |   3 ++-
 multimedia/gpac/patches/patch-src_utils_downloader.c |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 4d49e6971109 -r 420433e29e55 multimedia/gpac/distinfo
--- a/multimedia/gpac/distinfo  Fri Jan 10 21:16:03 2020 +0000
+++ b/multimedia/gpac/distinfo  Fri Jan 10 21:16:40 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2020/01/05 04:11:15 ryoon Exp $
+$NetBSD: distinfo,v 1.15 2020/01/10 21:16:40 joerg Exp $
 
 SHA1 (gpac-0.8.0.tar.gz) = eb9254a64210992d0fab44dbebe4dd6b9ed169dc
 RMD160 (gpac-0.8.0.tar.gz) = a73c08fc4be9b43e9f2173f0a3125a7734347ef6
@@ -6,3 +6,4 @@
 Size (gpac-0.8.0.tar.gz) = 11405239 bytes
 SHA1 (patch-Makefile) = 9f6cf58175ab3d95cbcf1c9fdd7b024432f6d08c
 SHA1 (patch-configure) = b76d24b134b7e10c613411f08d8374f0e0202599
+SHA1 (patch-src_utils_downloader.c) = 3c55df3e695abb417fa457c71b388eba2df2771f
diff -r 4d49e6971109 -r 420433e29e55 multimedia/gpac/patches/patch-src_utils_downloader.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gpac/patches/patch-src_utils_downloader.c      Fri Jan 10 21:16:40 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_utils_downloader.c,v 1.1 2020/01/10 21:16:40 joerg Exp $
+
+Don't use ancient SSLeay functions. SSLey_add_ssl_algorithms() is mapped to
+SSL_library_init().
+
+--- src/utils/downloader.c.orig        2020-01-09 00:48:40.383588739 +0000
++++ src/utils/downloader.c
+@@ -392,8 +392,9 @@ static Bool init_ssl_lib() {
+       }
+       SSL_library_init();
+       SSL_load_error_strings();
+-      SSLeay_add_all_algorithms();
+-      SSLeay_add_ssl_algorithms();
++      OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS
++                      | OPENSSL_INIT_ADD_ALL_DIGESTS
++                      | OPENSSL_INIT_LOAD_CONFIG, NULL);
+       _ssl_is_initialized = GF_TRUE;
+       GF_LOG(GF_LOG_DEBUG, GF_LOG_NETWORK, ("[HTTPS] Initalization of SSL library complete.\n"));
+       return GF_FALSE;



Home | Main Index | Thread Index | Old Index