From 5c21176738dad8fe00b55981f021ac47cfb024df Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 21 Jul 2023 13:48:22 -0400 Subject: [PATCH] Fix build with intel-ipsec-mb 1.4 Submitted upstream: https://github.com/intel/QAT_Engine/pull/262 --- 0001-Fix-build-with-intel-ipsec-mb-1.4.patch | 28 ++++++++++++++++++++ qatengine.spec | 5 +++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-build-with-intel-ipsec-mb-1.4.patch diff --git a/0001-Fix-build-with-intel-ipsec-mb-1.4.patch b/0001-Fix-build-with-intel-ipsec-mb-1.4.patch new file mode 100644 index 0000000..74730f9 --- /dev/null +++ b/0001-Fix-build-with-intel-ipsec-mb-1.4.patch @@ -0,0 +1,28 @@ +From 9d3a778a585dcaa55ef345505cda073dacbf9236 Mon Sep 17 00:00:00 2001 +From: Yaakov Selkowitz +Date: Fri, 21 Jul 2023 13:37:07 -0400 +Subject: [PATCH] Fix build with intel-ipsec-mb 1.4 + +1.4 dropped all 0.53 backwards compatibility symbols. + +Signed-off-by: Yaakov Selkowitz +--- + qat_evp.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/qat_evp.c b/qat_evp.c +index 2d6f05a..ca95fe1 100644 +--- a/qat_evp.c ++++ b/qat_evp.c +@@ -755,7 +755,7 @@ const EVP_CIPHER *qat_create_gcm_cipher_meth(int nid, int keylen) + + #ifdef ENABLE_QAT_SW_GCM + if (qat_sw_offload && (qat_sw_algo_enable_mask & ALGO_ENABLE_MASK_AES_GCM)) { +- res &= EVP_CIPHER_meth_set_iv_length(c, GCM_IV_DATA_LEN); ++ res &= EVP_CIPHER_meth_set_iv_length(c, IMB_GCM_IV_DATA_LEN); + res &= EVP_CIPHER_meth_set_flags(c, VAESGCM_FLAG); + #ifndef QAT_OPENSSL_PROVIDER + res &= EVP_CIPHER_meth_set_init(c, vaesgcm_ciphers_init); +-- +2.41.0 + diff --git a/qatengine.spec b/qatengine.spec index c794936..427a6f8 100644 --- a/qatengine.spec +++ b/qatengine.spec @@ -16,6 +16,9 @@ License: BSD-3-Clause AND OpenSSL URL: https://github.com/intel/QAT_Engine Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +# https://github.com/intel/QAT_Engine/pull/262 +Patch0: 0001-Fix-build-with-intel-ipsec-mb-1.4.patch + # https://bugzilla.redhat.com/show_bug.cgi?id=1909065 ExclusiveArch: x86_64 @@ -38,7 +41,7 @@ for both hardware and optimized software using Intel QuickAssist Technology enabled Intel platforms. %prep -%autosetup -n QAT_Engine-%{version} +%autosetup -n QAT_Engine-%{version} -p1 %build autoreconf -ivf