Fix build with intel-ipsec-mb 1.4

Submitted upstream: https://github.com/intel/QAT_Engine/pull/262
This commit is contained in:
Yaakov Selkowitz 2023-07-21 13:48:22 -04:00
parent afeddbfb66
commit 5c21176738
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 9d3a778a585dcaa55ef345505cda073dacbf9236 Mon Sep 17 00:00:00 2001
From: Yaakov Selkowitz <yselkowi@redhat.com>
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 <yselkowi@redhat.com>
---
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

View File

@ -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