-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ENGINE APIs are deprecated in OpenSSL v3, and Fedora 41 and RHEL 10 no longer ship the openssl/engine.h header by default. This allows the build to succeed as a provider without engine.h present. Signed-off-by: Venkatesh J <[email protected]> Co-authored-by: Yaakov Selkowitz <[email protected]>
- Loading branch information
1 parent
af75fd1
commit f3ecd64
Showing
21 changed files
with
85 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ | |
# define QAT_EVP_H | ||
|
||
|
||
# include <openssl/engine.h> | ||
# include <openssl/ossl_typ.h> | ||
# include "e_qat.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Build as an OpenSSL provider instead of as an engine | ||
%bcond provider %[0%{?fedora} >= 41 || 0%{?rhel} >= 10] | ||
# QAT_HW only acceleration for RHEL | ||
%bcond sw %{undefined rhel} | ||
|
||
# Define the directory where the OpenSSL engines are installed | ||
%if %{with provider} | ||
%global modulesdir %(pkg-config --variable=modulesdir libcrypto) | ||
%else | ||
%global enginesdir %(pkg-config --variable=enginesdir libcrypto) | ||
%endif | ||
|
||
Name: qatengine | ||
Version: 1.7.0 | ||
|
@@ -23,15 +32,12 @@ BuildRequires: automake | |
BuildRequires: gcc | ||
BuildRequires: libtool | ||
BuildRequires: openssl-devel >= 1.1.1 | ||
%if 0%{?fedora} > 40 | ||
BuildRequires: openssl-devel-engine | ||
%endif | ||
BuildRequires: qatlib-devel >= 23.02.0 | ||
%if !0%{?rhel} | ||
BuildRequires: intel-ipp-crypto-mb-devel >= 1.0.6 | ||
BuildRequires: intel-ipsec-mb-devel >= 1.3.0 | ||
BuildRequires: openssl | ||
%endif | ||
BuildRequires: openssl | ||
|
||
%description | ||
This package provides the Intel QuickAssist Technology OpenSSL Engine | ||
|
@@ -44,13 +50,7 @@ enabled Intel platforms. | |
|
||
%build | ||
autoreconf -ivf | ||
%if !0%{?rhel} | ||
# Enable QAT_HW & QAT_SW Co-existence acceleration | ||
%configure --enable-qat_sw | ||
%else | ||
# QAT_HW only acceleration for RHEL | ||
%configure | ||
%endif | ||
%configure %{?with_sw:--enable-qat_sw} %{?with_provider:--enable-qat_provider} | ||
%make_build | ||
|
||
%install | ||
|
@@ -60,22 +60,32 @@ autoreconf -ivf | |
find %{buildroot} -name "*.la" -delete | ||
%endif | ||
|
||
%if !0%{?rhel} | ||
%check | ||
%if %{with provider} | ||
export OPENSSL_MODULES=%{buildroot}%{modulesdir} | ||
openssl list -providers -provider qatprovider | ||
%else | ||
export OPENSSL_ENGINES=%{buildroot}%{enginesdir} | ||
openssl engine -v %{name} | ||
%endif | ||
|
||
%files | ||
%license LICENSE* | ||
%doc README.md docs* | ||
%if %{with provider} | ||
%{modulesdir}/qatprovider.so | ||
%else | ||
%{enginesdir}/%{name}.so | ||
%endif | ||
|
||
%changelog | ||
* Wed Sep 11 2024 Yogaraj Alamenda <[email protected]> - 1.7.0-1 | ||
* Thu Oct 24 2024 Yogaraj Alamenda <[email protected]> - 1.7.0-1 | ||
- Update to qatengine v1.7.0 | ||
- Remove qat_contig_mem from upstream package | ||
|
||
* Fri Sep 20 2024 Yaakov Selkowitz <[email protected]> - 1.6.2-2 | ||
- Build as a provider for F41 and EL10 | ||
|
||
* Wed Aug 14 2024 Krithika Kumaravelu <[email protected]> - 1.6.2-1 | ||
- Update to qatengine v1.6.2 | ||
|
||
|