Remove OpenSSL engine API dependency

Resolves: RHEL-54173

Signed-off-by: Štěpán Horáček <shoracek@redhat.com>
This commit is contained in:
Štěpán Horáček 2024-10-08 16:40:12 +02:00
parent fe2770681c
commit c500cefe31
2 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,81 @@
From e9d4ab91da392ad855e2c54ad437356ccc2ad24c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Hor=C3=A1=C4=8Dek?=
<shoracek@redhat.com>
Date: Tue, 8 Oct 2024 16:36:21 +0200
Subject: [PATCH] Remove OpenSSL engine API dependency
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Štěpán Horáček <shoracek@redhat.com>
---
src/tss2-esys/esys_crypto_ossl.c | 1 -
test/integration/fapi-data-crypt.int.c | 1 -
test/integration/fapi-ext-public-key.int.c | 1 -
test/integration/fapi-key-create-policy-signed-keyedhash.int.c | 1 -
test/integration/fapi-key-create-policy-signed.int.c | 1 -
5 files changed, 5 deletions(-)
diff --git a/src/tss2-esys/esys_crypto_ossl.c b/src/tss2-esys/esys_crypto_ossl.c
index 1620788c..b990f6e3 100644
--- a/src/tss2-esys/esys_crypto_ossl.c
+++ b/src/tss2-esys/esys_crypto_ossl.c
@@ -19,7 +19,6 @@
#include <openssl/params.h>
#include <openssl/param_build.h>
#endif
-#include <openssl/engine.h>
#include <stdio.h>
#include "tss2_esys.h"
diff --git a/test/integration/fapi-data-crypt.int.c b/test/integration/fapi-data-crypt.int.c
index 07437b62..cc0dfd62 100644
--- a/test/integration/fapi-data-crypt.int.c
+++ b/test/integration/fapi-data-crypt.int.c
@@ -15,7 +15,6 @@
#include <openssl/evp.h>
#include <openssl/rsa.h>
-#include <openssl/engine.h>
#include <openssl/pem.h>
#include "tss2_fapi.h"
diff --git a/test/integration/fapi-ext-public-key.int.c b/test/integration/fapi-ext-public-key.int.c
index 787a6c9c..5d30d2c1 100644
--- a/test/integration/fapi-ext-public-key.int.c
+++ b/test/integration/fapi-ext-public-key.int.c
@@ -11,7 +11,6 @@
#include <openssl/evp.h>
#include <openssl/aes.h>
#include <openssl/rsa.h>
-#include <openssl/engine.h>
#include <openssl/pem.h>
#include <stdio.h>
#include <stddef.h>
diff --git a/test/integration/fapi-key-create-policy-signed-keyedhash.int.c b/test/integration/fapi-key-create-policy-signed-keyedhash.int.c
index f9f4131d..d65ea10b 100644
--- a/test/integration/fapi-key-create-policy-signed-keyedhash.int.c
+++ b/test/integration/fapi-key-create-policy-signed-keyedhash.int.c
@@ -17,7 +17,6 @@
#include <openssl/evp.h>
#include <openssl/hmac.h>
-#include <openssl/engine.h>
#include <openssl/pem.h>
#include "tss2_fapi.h"
diff --git a/test/integration/fapi-key-create-policy-signed.int.c b/test/integration/fapi-key-create-policy-signed.int.c
index d20554aa..0eb848e9 100644
--- a/test/integration/fapi-key-create-policy-signed.int.c
+++ b/test/integration/fapi-key-create-policy-signed.int.c
@@ -17,7 +17,6 @@
#include <openssl/evp.h>
#include <openssl/rsa.h>
-#include <openssl/engine.h>
#include <openssl/pem.h>
#include "tss2_fapi.h"
--
2.46.2

View File

@ -16,6 +16,7 @@ Source0: https://github.com/tpm2-software/tpm2-tss/releases/download/%{ver
Source1: tpm2-tss-systemd-sysusers.conf
# doxygen crash
Patch0: tpm2-tss-3.0.0-doxygen.patch
Patch1: 0001-Remove-OpenSSL-engine-API-dependency.patch
%global udevrules_prefix 60-
@ -154,6 +155,10 @@ use tpm2-tss.
%changelog
* Thu Oct 3 2024 Štěpán Horáček <shoracek@redhat.com> - 4.1.3-3
- Remove OpenSSL engine API dependency
- Resolves: RHEL-54173
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.1.3-2
- Bump release for June 2024 mass rebuild