From 0183033f857e06fbbf864e25f844db51781f19d975e3f97d20aae8b9c432d407 Mon Sep 17 00:00:00 2001 From: Nikolay Gueorguiev Date: Thu, 18 May 2023 11:02:28 +0000 Subject: [PATCH 1/3] Accepting request 1087780 from home:ngueorguiev:branches:security:tls - Updated the .spec file, amended to use libica4 instead of libica * BuildRequires: libica4 >= 4 * Requires: libica4 >= 4 OBS-URL: https://build.opensuse.org/request/show/1087780 OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=53 --- openssl-ibmca.changes | 7 +++++++ openssl-ibmca.spec | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/openssl-ibmca.changes b/openssl-ibmca.changes index f441a7c..5b164ec 100644 --- a/openssl-ibmca.changes +++ b/openssl-ibmca.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 18 10:41:32 UTC 2023 - Nikolay Gueorguiev + +- Updated the .spec file, amended to use libica4 instead of libica + * BuildRequires: libica4 >= 4 + * Requires: libica4 >= 4 + ------------------------------------------------------------------- Tue May 2 07:49:24 UTC 2023 - Nikolay Gueorguiev diff --git a/openssl-ibmca.spec b/openssl-ibmca.spec index 8b3ab2c..9eda2e2 100644 --- a/openssl-ibmca.spec +++ b/openssl-ibmca.spec @@ -34,11 +34,11 @@ Patch001: openssl-ibmca-engine-noregister.patch ### BuildRequires: autoconf BuildRequires: automake -BuildRequires: libica >= 4.0.0 BuildRequires: libica-devel >= 4.0.0 BuildRequires: libica-tools >= 4.0.0 +BuildRequires: libica4 >= 4 BuildRequires: libtool -Requires: libica >= 4.0.0 +Requires: libica4 >= 4 %if %{openssl3} BuildRequires: openssl-devel > 3.0.0 Requires: openssl > 3.0.0 From 8672afbd140b230278f019cc24dd2e4d684d768765bc022ae1f7d07bc808e8c3 Mon Sep 17 00:00:00 2001 From: Nikolay Gueorguiev Date: Mon, 22 May 2023 07:24:10 +0000 Subject: [PATCH 2/3] Accepting request 1088271 from home:ngueorguiev:branches:security:tls - Updated the .spec file, amended to use libica4 instead of libica * Requires: libica4 >= 4 - Updated the .spec file * uses a flag openssl3 (1 or 0) to include or not the openssl3 libraries - Updated the .spec file as follow: * BuildRequires: libica-devel >= 4.0.0 * BuildRequires: libica-tools >= 4.0.0 - Added dependency on libica4 (bsc#1209038) * BuildRequires and Requires statements in .spec file for libica4 - Applies a patch (bsc#1210359) * openssl-ibmca-engine-noregister.patch - Updated the '#dynamic_path' line, as it was before, with the comment '#'. - Upgraded openssl-ibmca to version 2.4.0 (bsc#1210059) * openssl-ibmca 2.4.0 - Provider: Adjustments for OpenSSL versions 3.1 and 3.2 - Provider: Support RSA blinding - Provider: Constant-time fixes for RSA PKCS#1 v1.5 and OAEP padding - Provider: Support "implicit rejection" option for RSA PKCS#1 v1.5 padding - Provider: Adjustments in OpenSSL config generator and example configs - Engine: EC: Cache ICA key in EC_KEY object (performance improvement) - Engine: Enable RSA blinding - Updated .spec file removed '#' from the line containing 'sed -e 's/^dynamic_path/#dynamic_path/' (bsc#1209038) - Added in %files * /usr/lib64/engines-3/ibmca-provider.la * /usr/lib64/engines-3/ibmca-provider.so - Upgraded to version 2.3.1 (jsc#PED-597) * openssl-ibmca 2.3.1 - Adjustments for libica 4.1.0 * openssl-ibmca 2.3.0 - First version including the provider - Fix for engine build without OpenSSL 3.0 sources * openssl-ibmca 2.2.3 - Fix PKEY segfault with OpenSSL 3.0 * openssl-ibmca 2.2.2 - Fix tests with OpenSSL 3.0 - Build against libica 4.0 - Removed a Requires for libica from the specfile. - Removed the obsolete baselibs.conf file - Completely revamped the postinstall scriptlet so that it doesn't need to know or care about how many lines are in either /etc/ssl/openssl.cnf, or the sample file at /usr/share/doc/packages/openssl-ibmca/openssl.cnf.sample We're now using the ".include" directive for the openssl.cnf file, and only modifying that file the minimum necessary to implement the change. (bsc#1004463) - Upgraded to version 2.2.1 (jsc#SLE-18333) * openssl-ibmca 2.2.1 Bug fixes * openssl-ibmca 2.2.0 Implement fallbacks based on OpenSSL Disable software fallbacks from libica Allow to specify default library (libica vs. libica-cex) to use Provide "libica" engine ctrl to switch library at load time Update README.md Remove libica link dependency Generate sample configuration files from system configuration Restructure registration global data * openssl-ibmca 2.1.3 Bug fix * openssl-ibmca 2.1.2 Bug fixes - Modified spec file to * Define a global variable enginesdir the same was as IBM does instead of _ENGINE_DIR as we had been doing. * Implemented %make_build macro according to spec-cleaner * Changed the package description to match IBM's. * Removed the redundant "autoreconf --force --install" - Upgrade to version 2.1.1 (jsc#SLE-13709) * Bug fixes - Upgrade to version 2.1.0 (jsc#SLE-7852, jsc#SLE-7882) Add MSA9 CPACF support for X25519, X448, Ed25519 and Ed448 - Upgraded to version 2.0.3 (jsc#SLE-6123, jsc#SLE-6424) * openssl-ibmca 2.0.3 Add MSA9 CPACF support for ECDSA sign/verify - Dropped obsolete openssl-ibmca-sles15sp1-Move-ERR_load-unload-to-bind_helper-resp-destroy-fun.patch - Changed the ExclusiveArch directive to include s390x only. - The code in e_ibmca.c does a dlopen for libica.so.3, instead of linking against the shared library. As a result, if the package containing libica.so.3 isn't installed, problems occur. Added a "Requires: libica3" to the spec file to fix this. (bsc#1142286) - Made a couple of changes to the spec file based on the output from spec-cleaner. - Added openssl-ibmca-sles15sp1-Move-ERR_load-unload-to-bind_helper-resp-destroy-fun.patch An Apache HTTP Server was set up with mod_ssl and the openssl ibmca engine using libica and a CEX6A card. Whenever a worker process is cleaned up a segmentation fault occurs. (bsc#1138517) - Upgraded to version 2.0.2 (Fate#325688) * openssl-ibmca 2.0.2 Fix doing rsa-me, altough rsa-crt would be possible. - Upgraded to version 2.0.1 (Fate#325688) * openssl-ibmca 2.0.1 Dont fail when a libica symbol cannot be resolved. - Made multiple changes to the spec file based on spec-cleaner output. - Upgraded to version 2.0.0 (Fate#325688) * openssl-ibmca 2.0.0 Add ECC support. Add check and distcheck make-targets. Project cleanup, code was broken into multiple files and coding style cleanup. Improvements to compat macros for openssl. Don't disable libica sw fallbacks. Fix dlclose logic. * openssl-ibmca 1.4.1 Fix structure size for aes-256-ecb/cbc/cfb/ofb Update man page Switch to ibmca.so filename to allow standalone use Switch off Libica fallback mode if available Make sure ibmca_init only runs once Provide simple macro for DEBUG_PRINTF possibility Cleanup and slight rework of function set_supported_meths - Did some cleanup to the spec file, based on spec-cleanup. - Removed the following obsolete patches: * openssl-ibmca-sles15-Switch-to-ibmca.so-filename-to-allow-a-standalone-us.patch * openssl-ibmca-sles15-Fix-lib-name-in-test-code.patch * openssl-ibmca-sles15-Update-lib-name-in-documentation.patch - Added the following patches for bsc#1097463 * openssl-ibmca-sles15-Switch-to-ibmca.so-filename-to-allow-a-standalone-us.patch * openssl-ibmca-sles15-Fix-lib-name-in-test-code.patch * openssl-ibmca-sles15-Update-lib-name-in-documentation.patch - Upgraded to version 1.4.0 * Re-license to Apache License v2.0 * Fix aes_gcm initialization. * Update man page. * Add macros for OpenSSL 0.9.8 compat. * Remove AC_FUNC_MALLOC from configure.ac * Add compat macro for OpenSSL 1.0.1e-fips. * Setting 'foreign' strictness for automake. * Add AES-GCM support. * Rework EVP_aes macros. * Remove dependency of old local OpenSSL headers. * Fix engine initialization to set function pointers only once. * Remove blank COPYING and NEWS files. * Remove INSTALL and move its content to README.md * Update README.md file to make use of markdown. * Rename README file to README.md to use markdown * Add CONTRIBUTING guidelines. * Adding coding style documentation. * Enable EVP_MD_FLAG_FIPS flag for SHA-*. * Initialize rsa_keygen in RSA_METHOD for openssl < 1.1.0 * Fix SHA512 EVP digest struct to use EVP_MD_FLAG_PKEY_METHOD_SIGNATURE when using OpenSSL 1.0 * Fix wrong parenthesis * convert libica loading to dlopen() and friends * Add support to DSO on new API of OpenSSL-1.1.0 - Removed obsolete openssl-ibmca-fix-sha512-evp-digest-to-use-evp_md_flag_pkey_method_signature.patch - Added BuildRequires for autoconf, automake, and libtool. - Updated BuildRequires for libica-devel to be >= 3.1.1 - Now that the openSSL engines directory is versioned: * Modified the spec file to query the libcrypto package for which directory to install the engine into. * Removed openssl-ibmca-fix-enginepath.patch. Replaced it with a sed command so that it will provide the correct versioned engines directory - Removed openssl-ibmca-configure.patch. It doesn't seem to be needed any longer. - Added openssl-ibmca-fix-sha512-evp-digest-to-use-evp_md_flag_pkey_method_signature.patch (bsc#1032113) - Added libica-tools to the BuildRequires due to repackaging of libica. - Renamed BuildRequires from libica2-devel to libica-devel for the same reason. - Tweaked a comment to get rid of an rpmlint warning message. - fixed ssl configuration merging (bsc#1004463) - openssl-ibmca-fix-enginepath.patch: fix the engine path - Use macro for configure (fate#319941) - Use url for source - Enable parallel building - Cleanup spec file with spec-cleaner - Upgraded to version 1.3.0 (fate#319941) - Updated openssl-ibmca-configure.patch to apply cleanly - Removed obsolete patches - openssl-ibmca-README.patch - openssl-ibmca-sha256-digest-length.patch - openssl-pkey.patch - openssl-des-ede.patch - Did some spec file cleanup. - Fixed %post script to update library path (the only dynamic part of the ibmca configuration) every time the package is installed. (bsc#966139) - Updated AUTHORS, INSTALL, and README (bsc#942839) - %post and %postun added to properly update openssl.cnf (bsc#942839) - Updated to used libica2 == v2.4.2 for SLE12-SP1 (bsc#951138) - Remove dependency on fillup anf insserv; the package provides neither sysconfig file nor sysvinit script - Remove depreciated AUTHORS section - Use %configure macro - Add openssl-ibmca-configure.patch - the openssl engines moved to /%_lib/engines bnc#905480 - Forced requirement of libica-2_3_0 (bnc#890824) - openssl-des-ede.patch: fixed a crash during benchmark (bnc#879922) - openssl-pkey.patch: defer HMAC signing to pkey framework, fixes fips self-test during EC key creation (bnc#879922) - spec file cleaned up a bit - openssl-ibmca-sha256-digest-length.patch: SHA256: Fixed message digest length definition in sha256 template (bnc#868275) - update to 1.2.0 - removed patches: ibmca-configure.patch ibmca-segfault.fix.patch ibmca-sw-fix.patch openssl-ibmca-1.0.0.rc2-memset-fix.patch - make it exclusivearch for s390/s390x as the required libica is only available for s390/s390x - Made required libica-2_1_0 s390 specific - Added x86_64 to ExclusiveArch as %ix86 doesn't do it - Removed libica requirement - allowing build process to find it - Added COPYING to %files - Requiring libica 2.1.0 or greater - enable ppc64le - fix build (add autoconf automake libtool to BuildRequires) - disable libtool --finish call - own engines directory - package baselibs.conf - obsolete old -XXbit packages (bnc#437293) - added baselibs.conf file to build xxbit packages for multilib support - added fixes by IBM (bug #243801): ibmca-segfault.fix: rewrite ibmca_mod_expto remove improper use of BIGNUM object ibmca-sw-fix: rewrite ibmca_mod_exp_crtto remove improper use of BIGNUM object openssl-ibmca-1.0.0.rc2-memset-fix.patch: fix memory initialization problem - updated README (bug #185508) - Fixed configure.in to build correctly - Fixed spec file - Initial version from Mike Halcrow OBS-URL: https://build.opensuse.org/request/show/1088271 OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=54 --- openssl-ibmca.changes | 3 +-- openssl-ibmca.spec | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/openssl-ibmca.changes b/openssl-ibmca.changes index 5b164ec..3a9bc50 100644 --- a/openssl-ibmca.changes +++ b/openssl-ibmca.changes @@ -1,8 +1,7 @@ ------------------------------------------------------------------- -Thu May 18 10:41:32 UTC 2023 - Nikolay Gueorguiev +Mon May 22 07:20:32 UTC 2023 - Nikolay Gueorguiev - Updated the .spec file, amended to use libica4 instead of libica - * BuildRequires: libica4 >= 4 * Requires: libica4 >= 4 ------------------------------------------------------------------- diff --git a/openssl-ibmca.spec b/openssl-ibmca.spec index 9eda2e2..dcb4a05 100644 --- a/openssl-ibmca.spec +++ b/openssl-ibmca.spec @@ -36,7 +36,6 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libica-devel >= 4.0.0 BuildRequires: libica-tools >= 4.0.0 -BuildRequires: libica4 >= 4 BuildRequires: libtool Requires: libica4 >= 4 %if %{openssl3} From 3f2f0b2b75f19bfcb99848d9794e863cae2da86267aace795ccbfdef11092546 Mon Sep 17 00:00:00 2001 From: Nikolay Gueorguiev Date: Fri, 13 Oct 2023 10:56:35 +0000 Subject: [PATCH 3/3] Accepting request 1117654 from home:ngueorguiev:branches:security:tls - Removed an obsolete patch (implemented in the version 2.4.1) * openssl-ibmca-engine-noregister.patch - Upgrade to version 2.4.1 (jsc#PED-5422) * Provider: Change the default log directory to /tmp * Bug fixes OBS-URL: https://build.opensuse.org/request/show/1117654 OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=55 --- openssl-ibmca-2.4.0.tar.gz | 3 --- openssl-ibmca-2.4.1.tar.gz | 3 +++ openssl-ibmca-engine-noregister.patch | 12 ------------ openssl-ibmca.changes | 13 +++++++++++++ openssl-ibmca.spec | 4 +--- 5 files changed, 17 insertions(+), 18 deletions(-) delete mode 100644 openssl-ibmca-2.4.0.tar.gz create mode 100644 openssl-ibmca-2.4.1.tar.gz delete mode 100644 openssl-ibmca-engine-noregister.patch diff --git a/openssl-ibmca-2.4.0.tar.gz b/openssl-ibmca-2.4.0.tar.gz deleted file mode 100644 index d6cf6b4..0000000 --- a/openssl-ibmca-2.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:050b7b3d340b18ba1301ead114026d90edf4458d3a7673dbcc44536fc43314a0 -size 213358 diff --git a/openssl-ibmca-2.4.1.tar.gz b/openssl-ibmca-2.4.1.tar.gz new file mode 100644 index 0000000..277a2fe --- /dev/null +++ b/openssl-ibmca-2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ecc41085e8b2110b3d2819a55faf0c189fb6064c51f872b963cae7a82cfa0c5 +size 215837 diff --git a/openssl-ibmca-engine-noregister.patch b/openssl-ibmca-engine-noregister.patch deleted file mode 100644 index 8bf3661..0000000 --- a/openssl-ibmca-engine-noregister.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- 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 3a9bc50..1981e0a 100644 --- a/openssl-ibmca.changes +++ b/openssl-ibmca.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Oct 13 10:39:42 UTC 2023 - Nikolay Gueorguiev + +- Removed an obsolete patch (implemented in the version 2.4.1) + * openssl-ibmca-engine-noregister.patch + +------------------------------------------------------------------- +Fri Oct 6 06:35:00 UTC 2023 - Nikolay Gueorguiev + +- Upgrade to version 2.4.1 (jsc#PED-5422) + * Provider: Change the default log directory to /tmp + * Bug fixes + ------------------------------------------------------------------- Mon May 22 07:20:32 UTC 2023 - Nikolay Gueorguiev diff --git a/openssl-ibmca.spec b/openssl-ibmca.spec index dcb4a05..9953aec 100644 --- a/openssl-ibmca.spec +++ b/openssl-ibmca.spec @@ -21,7 +21,7 @@ %global enginesdir %(pkg-config --variable=enginesdir libcrypto) Name: openssl-ibmca -Version: 2.4.0 +Version: 2.4.1 Release: 0 Summary: The IBMCA OpenSSL dynamic engine License: Apache-2.0 @@ -30,8 +30,6 @@ 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-devel >= 4.0.0