From 8d6a2663103a6a7484744cfdd3d70a7ba8e359243f66de08baa31060ff720251 Mon Sep 17 00:00:00 2001 From: Nikolay Gueorguiev Date: Wed, 19 Apr 2023 11:08:00 +0000 Subject: [PATCH] Accepting request 1080296 from home:ngueorguiev:branches:security:tls - Applies a patch (bsc#1210359) * openssl-ibmca-engine-noregister.patch - Updated the '#dynamic_path' line, as it was before, with the comment '#'. OBS-URL: https://build.opensuse.org/request/show/1080296 OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=42 --- openssl-ibmca-engine-noregister.patch | 12 ++++++++++++ openssl-ibmca.changes | 7 +++++++ openssl-ibmca.spec | 5 ++++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 openssl-ibmca-engine-noregister.patch diff --git a/openssl-ibmca-engine-noregister.patch b/openssl-ibmca-engine-noregister.patch new file mode 100644 index 0000000..8bf3661 --- /dev/null +++ b/openssl-ibmca-engine-noregister.patch @@ -0,0 +1,12 @@ +--- openssl-ibmca-2.3.1/src/engine/e_ibmca.c.xx 2023-04-19 10:36:53.514635802 +0200 ++++ openssl-ibmca-2.3.1/src/engine/e_ibmca.c 2023-04-19 10:39:01.678265739 +0200 +@@ -642,6 +642,9 @@ + if (!ENGINE_set_pkey_meths(e, ibmca_engine_pkey_meths)) + goto out; + ++ if (!ENGINE_set_flags(e, ENGINE_FLAGS_NO_REGISTER_ALL)) ++ goto out; ++ + rc = 1; + out: + free(pmech_list); diff --git a/openssl-ibmca.changes b/openssl-ibmca.changes index e8f771a..7006abe 100644 --- a/openssl-ibmca.changes +++ b/openssl-ibmca.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 19 10:52:06 UTC 2023 - Nikolay Gueorguiev + +- Applies a patch (bsc#1210359) + * openssl-ibmca-engine-noregister.patch +- Updated the '#dynamic_path' line, as it was before, with the comment '#'. + ------------------------------------------------------------------- Thu Apr 6 08:14:25 UTC 2023 - Nikolay Gueorguiev diff --git a/openssl-ibmca.spec b/openssl-ibmca.spec index 7c9b718..dc91bfc 100644 --- a/openssl-ibmca.spec +++ b/openssl-ibmca.spec @@ -28,8 +28,11 @@ URL: https://github.com/opencryptoki/openssl-ibmca Source: https://github.com/opencryptoki/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: engine_section.txt ### +Patch001: openssl-ibmca-engine-noregister.patch +### BuildRequires: autoconf BuildRequires: automake +BuildRequires: libica >= 4.0.0 BuildRequires: libica-devel >= 3.1.1 BuildRequires: libica-tools >= 2.4.0 BuildRequires: libtool @@ -73,7 +76,7 @@ cp -p %{SOURCE1} %{buildroot}%{_datadir}/%{name}/openssl-ibmca.sectiondef.txt grep -v "^#" src/engine/openssl.cnf.sample | \ sed -n -e '/^\[ibmca_section\]/,$ p' | \ sed -e '/^$/ {N;N;s/\n\n/\n/g;}' | \ - sed -e 's/^dynamic_path/dynamic_path/' > %{buildroot}%{_datadir}/%{name}/openssl-ibmca.enginedef.cnf + sed -e 's/^dynamic_path/#dynamic_path/' > %{buildroot}%{_datadir}/%{name}/openssl-ibmca.enginedef.cnf %post #Original fix for bsc#942839 was to update on first install