Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2018 00:08:02 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479869 - in head/audio/libshout: . files
Message-ID:  <201809160008.w8G082CN030598@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Sep 16 00:08:01 2018
New Revision: 479869
URL: https://svnweb.freebsd.org/changeset/ports/479869

Log:
  Fix build with OpenSSL 1.1.*
  
  PR:		228942
  Reported by:	brnrd

Added:
  head/audio/libshout/files/
  head/audio/libshout/files/patch-src-tls.c   (contents, props changed)
Modified:
  head/audio/libshout/Makefile

Modified: head/audio/libshout/Makefile
==============================================================================
--- head/audio/libshout/Makefile	Sun Sep 16 00:07:56 2018	(r479868)
+++ head/audio/libshout/Makefile	Sun Sep 16 00:08:01 2018	(r479869)
@@ -13,9 +13,6 @@ COMMENT=	Connect and transmit data to an Icecast media
 LICENSE=	LGPL20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_SSL=	openssl-devel
-BROKEN_SSL_REASON_openssl-devel=	undefined reference to `SSLeay_add_all_algorithms'
-
 LIB_DEPENDS=	libogg.so:audio/libogg \
 		libvorbis.so:audio/libvorbis
 

Added: head/audio/libshout/files/patch-src-tls.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/libshout/files/patch-src-tls.c	Sun Sep 16 00:08:01 2018	(r479869)
@@ -0,0 +1,18 @@
+--- src/tls.c.orig	2015-06-18 04:27:45 UTC
++++ src/tls.c
+@@ -63,10 +63,15 @@ static inline int tls_setup(shout_tls_t 
+ {
+ 	SSL_METHOD *meth;
+ 
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ 	SSL_library_init();
+ 	SSL_load_error_strings();
+ 	SSLeay_add_all_algorithms();
+  	SSLeay_add_ssl_algorithms();
++#else
++	OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL);
++	OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
++#endif
+ 
+ 	meth = TLSv1_client_method();
+ 	if (!meth)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809160008.w8G082CN030598>