attest tools support openssl 3.0.0

This commit is contained in:
Huaxin Lu 2023-02-10 13:45:20 +08:00
parent 588c946fda
commit 556bea21f8
2 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,26 @@
From 63001de4b2b56d2a94c2e806f03ade285c4c9533 Mon Sep 17 00:00:00 2001
From: Huaxin Lu <luhuaxin1@huawei.com>
Date: Fri, 10 Feb 2023 13:41:25 +0800
Subject: [PATCH] attest tools support openssl 3.0
Signed-off-by: Huaxin Lu <luhuaxin1@huawei.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 9b2e89c..ab774c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,7 @@ AC_CHECK_LIB([digestlist-base], [new_key_pgp],[digestlists_pgp=true],[],[])
AM_CONDITIONAL([DIGESTLISTS], [test x$digestlists = xtrue])
AM_CONDITIONAL([DIGESTLISTS_PGP], [test x$digestlists_pgp = xtrue])
-CFLAGS="$CFLAGS -Wall -Werror -DTPM_POSIX"
+CFLAGS="$CFLAGS -Wall -Werror -DTPM_POSIX -Wno-deprecated-declarations -Wno-discarded-qualifiers"
AC_SUBST(CFLAGS)
--
2.33.0

View File

@ -1,20 +1,22 @@
name: attest-tools
Version: 0.2.92
Release: 6
Release: 7
Summary: Attestation tools
Source0: https://gitee.com/openeuler/%{name}/repository/archive/v%{version}.tar.gz
Patch0: attest-tools-support-openssl-3.0.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv2+
Url: https://gitee.com/openeuler/attest-tools
BuildRequires: autoconf automake libcurl-devel libtool compat-openssl11-devel
BuildRequires: autoconf automake libcurl-devel libtool openssl-devel
BuildRequires: digest-list-tools-devel json-c-devel libcurl-devel tss2-devel systemd
Requires: json-c curl tss2 openssl_tpm2_engine
%if 0%{?suse_version}
BuildRequires: libopenssl-devel
%else
BuildRequires: compat-openssl11-devel
BuildRequires: openssl-devel
%endif
%description
@ -95,6 +97,9 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/include/attest-tools
%changelog
* Thu Mar 16 2023 luhuaxin <luhuaxin1@huawei.com> - 0.2.92-7
- Support openssl 3.0
* Tue Feb 7 2023 gaoyusong <gaoyusong2@huawei.com> - 0.2.92-6
- Fix build error with openssl