Hello community, here is the log from the commit of package tboot for openSUSE:Factory checked in at 2017-11-11 14:19:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tboot (Old) and /work/SRC/openSUSE:Factory/.tboot.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tboot" Sat Nov 11 14:19:52 2017 rev:28 rq:540236 version:20170711_1.9.6 Changes: -------- --- /work/SRC/openSUSE:Factory/tboot/tboot.changes 2017-07-21 22:48:03.468082005 +0200 +++ /work/SRC/openSUSE:Factory/.tboot.new/tboot.changes 2017-11-11 14:20:13.289846699 +0100 @@ -1,0 +2,7 @@ +Thu Nov 9 14:08:59 UTC 2017 - [email protected] + +- tboot-openssl-1-1-0.patch: make package compatible with OpenSSL 1.1.0. + There's no upstream release containing this patch yet. The patch builds + against OpenSSL 1.0.x as well. This is for SLE-15 support (bnc#1067229). + +------------------------------------------------------------------- New: ---- tboot-openssl-1-1-0.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tboot.spec ++++++ --- /var/tmp/diff_new_pack.oHhwNa/_old 2017-11-11 14:20:15.837753319 +0100 +++ /var/tmp/diff_new_pack.oHhwNa/_new 2017-11-11 14:20:15.841753173 +0100 @@ -27,6 +27,7 @@ Source0: http://downloads.sourceforge.net/project/tboot/tboot/tboot-%{ver}.tar.gz Patch3: tboot-grub2-fix-menu-in-xen-host-server.patch Patch4: tboot-grub2-fix-xen-submenu-name.patch +Patch5: tboot-openssl-1-1-0.patch # PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/tboot/code/merge-requests/1/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: openssl-devel @@ -42,6 +43,7 @@ %setup -q -n %name-%ver %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build export CFLAGS="%{optflags}" ++++++ tboot-openssl-1-1-0.patch ++++++ changeset: 503:2bb331ec268d user: Ning Sun <[email protected]> date: Mon Aug 28 02:10:28 2017 -0700 summary: port to openssl-1.1.0 diff -r e57efe410a90 -r 2bb331ec268d lcptools/hash.c --- a/lcptools/hash.c Mon Jul 24 05:34:17 2017 -0700 +++ b/lcptools/hash.c Mon Aug 28 02:10:28 2017 -0700 @@ -74,13 +74,18 @@ return false; if ( hash_alg == TB_HALG_SHA1_LG ) { - EVP_MD_CTX ctx; + EVP_MD_CTX *ctx = EVP_MD_CTX_create(); + if (ctx == NULL) { + fprintf(stderr, "%s(): EVP_MD_CTX_create() failed.\n", __func__); + return false; + } const EVP_MD *md; md = EVP_sha1(); - EVP_DigestInit(&ctx, md); - EVP_DigestUpdate(&ctx, buf, size); - EVP_DigestFinal(&ctx, hash->sha1, NULL); + EVP_DigestInit(ctx, md); + EVP_DigestUpdate(ctx, buf, size); + EVP_DigestFinal(ctx, hash->sha1, NULL); + EVP_MD_CTX_destroy(ctx); return true; } else
