Hello community, here is the log from the commit of package yate for openSUSE:Factory checked in at 2017-12-18 08:57:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yate (Old) and /work/SRC/openSUSE:Factory/.yate.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yate" Mon Dec 18 08:57:25 2017 rev:28 rq:556059 version:5.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/yate/yate.changes 2017-09-28 12:35:36.373690947 +0200 +++ /work/SRC/openSUSE:Factory/.yate.new/yate.changes 2017-12-18 08:57:27.676726931 +0100 @@ -1,0 +2,6 @@ +Tue Dec 5 16:03:51 CET 2017 - [email protected] + +- add patch yate-openssl-1.1.patch + to fix build against openssl-1.1 + +------------------------------------------------------------------- New: ---- yate-openssl-1.1.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yate.spec ++++++ --- /var/tmp/diff_new_pack.wOZx4V/_old 2017-12-18 08:57:28.272698161 +0100 +++ /var/tmp/diff_new_pack.wOZx4V/_new 2017-12-18 08:57:28.272698161 +0100 @@ -28,6 +28,7 @@ Source0: http://yate.null.ro/tarballs/yate5/yate-%{version}-1.tar.gz Patch1: dont-mess-with-cflags.patch Patch2: add-arm64-support.patch +Patch3: yate-openssl-1.1.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -109,6 +110,7 @@ %setup -q -n %{name} %patch1 -p1 %patch2 -p1 +%patch3 %build autoreconf -fiv ++++++ yate-openssl-1.1.patch ++++++ --- modules/openssl.cpp +++ modules/openssl.cpp @@ -36,6 +36,10 @@ #include <openssl/des.h> #endif +#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#include <openssl/modes.h> +#endif + using namespace TelEngine; namespace { // anonymous @@ -644,6 +648,17 @@ inpData = outData; unsigned int num = 0; unsigned char eCountBuf[AES_BLOCK_SIZE]; +#if OPENSSL_VERSION_NUMBER >= 0x10100000L + CRYPTO_ctr128_encrypt( + (const unsigned char*)inpData, + (unsigned char*)outData, + len, + m_key, + m_initVector, + eCountBuf, + &num, + (block128_f)AES_encrypt); +#else AES_ctr128_encrypt( (const unsigned char*)inpData, (unsigned char*)outData, @@ -652,6 +667,7 @@ m_initVector, eCountBuf, &num); +#endif return true; }
