diff --git a/pkcs11-helper-openssl3.patch b/pkcs11-helper-openssl3.patch new file mode 100644 index 0000000..62194bd --- /dev/null +++ b/pkcs11-helper-openssl3.patch @@ -0,0 +1,24 @@ +From 086d551251cebb67cd74ab2e735427969bbf215f Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev +Date: Wed, 4 Aug 2021 19:02:34 +0300 +Subject: [PATCH] build: openssl: remove RSA_SSLV23_PADDING constant usage + +Due to openssl-3 compatibility, thanks to t0b3 +--- + lib/pkcs11h-openssl.c | 3 --- + 1 files changed, 3 deletions(-) + +diff --git a/lib/pkcs11h-openssl.c b/lib/pkcs11h-openssl.c +index dfb00136..78bb7fc1 100644 +--- a/lib/pkcs11h-openssl.c ++++ b/lib/pkcs11h-openssl.c +@@ -474,9 +474,6 @@ __pkcs11h_openssl_rsa_dec ( + case RSA_PKCS1_OAEP_PADDING: + mech = CKM_RSA_PKCS_OAEP; + break; +- case RSA_SSLV23_PADDING: +- rv = CKR_MECHANISM_INVALID; +- break; + case RSA_NO_PADDING: + mech = CKM_RSA_X_509; + break; diff --git a/pkcs11-helper.spec b/pkcs11-helper.spec index 0c5aca4..2c15521 100644 --- a/pkcs11-helper.spec +++ b/pkcs11-helper.spec @@ -1,6 +1,6 @@ Name: pkcs11-helper Version: 1.27.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A library for using PKCS#11 providers License: GPLv2 or BSD @@ -8,6 +8,8 @@ URL: http://www.opensc-project.org/opensc/wiki/pkcs11-helper Source0: https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-1.27/pkcs11-helper-%{version}.tar.bz2 # https://github.com/OpenSC/pkcs11-helper/pull/4 Patch2: pkcs11-helper-rfc7512.patch +# https://github.com/OpenSC/pkcs11-helper/commit/086d551251cebb67cd74ab2e735427969bbf215f +Patch3: pkcs11-helper-openssl3.patch BuildRequires: make BuildRequires: gcc @@ -36,8 +38,7 @@ programs using the pkcs11-helper library. %prep -%setup -q -%patch2 -p1 +%autosetup -p1 %build %configure --disable-static --enable-doc @@ -75,6 +76,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %changelog +* Mon Oct 04 2021 Neal Gompa - 1.27.0-6 +- Backport fix for OpenSSL 3.0 support + * Tue Sep 14 2021 Sahana Prasad - 1.27.0-5 - Rebuilt with OpenSSL 3.0.0