Accepting request 434703 from security

- fixed ssl configuration merging (bsc#1004463)
- openssl-ibmca-fix-enginepath.patch: fix the engine path

- Use macro for configure (fate#319941)

OBS-URL: https://build.opensuse.org/request/show/434703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openssl-ibmca?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2016-10-18 08:41:29 +00:00 committed by Git OBS Bridge
parent e49ce50354
commit fbceffe006
3 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,13 @@
Index: openssl-ibmca-1.3.0/src/openssl.cnf.sample
===================================================================
--- openssl-ibmca-1.3.0.orig/src/openssl.cnf.sample
+++ openssl-ibmca-1.3.0/src/openssl.cnf.sample
@@ -23,7 +23,7 @@ ibmca = ibmca_section
# The openssl engine path for libibmca.so.
# Set the dynamic_path to where the libibmca.so engine
# resides on the system.
-dynamic_path = /usr/local/lib/libibmca.so
+dynamic_path = /lib64/engines/libibmca.so
engine_id = ibmca
init = 1

View File

@ -1,7 +1,13 @@
-------------------------------------------------------------------
Thu Oct 13 09:36:50 UTC 2016 - meissner@suse.com
- fixed ssl configuration merging (bsc#1004463)
- openssl-ibmca-fix-enginepath.patch: fix the engine path
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 6 19:07:43 UTC 2016 - mpluskal@suse.com Wed Apr 6 19:07:43 UTC 2016 - mpluskal@suse.com
- Use macro for configure - Use macro for configure (fate#319941)
- Use url for source - Use url for source
- Enable parallel building - Enable parallel building
- Cleanup spec file with spec-cleaner - Cleanup spec file with spec-cleaner

View File

@ -26,6 +26,7 @@ Url: http://sourceforge.net/projects/opencryptoki
Source: http://sourceforge.net/projects/opencryptoki/files/libica%%20OpenSSL%%20Engine/ibmca-%{version}/openssl-ibmca-%{version}.tar.bz2 Source: http://sourceforge.net/projects/opencryptoki/files/libica%%20OpenSSL%%20Engine/ibmca-%{version}/openssl-ibmca-%{version}.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
Patch1: openssl-ibmca-configure.patch Patch1: openssl-ibmca-configure.patch
Patch2: openssl-ibmca-fix-enginepath.patch
BuildRequires: libica2-devel >= 2.4.0 BuildRequires: libica2-devel >= 2.4.0
BuildRequires: openssl-devel BuildRequires: openssl-devel
Requires: libica2 >= 2.4.0 Requires: libica2 >= 2.4.0
@ -40,6 +41,7 @@ IBM eServer Cryptographic Accelerator (ICA).
%prep %prep
%setup -q %setup -q
%patch1 %patch1
%patch2 -p1
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
@ -56,7 +58,7 @@ rm %{buildroot}/%{_lib}/engines/libibmca.la
#Original fix for bsc#942839 was to update on first install #Original fix for bsc#942839 was to update on first install
#For bsc#966139 update if openssl_def not found #For bsc#966139 update if openssl_def not found
SSLCNF=%{_sysconfdir}/ssl/openssl.cnf SSLCNF=%{_sysconfdir}/ssl/openssl.cnf
SSLSMP=%{_docdir}/${name}/openssl.cnf.sample SSLSMP=%{_docdir}/%{name}/openssl.cnf.sample
if [ -f ${SSLCNF} -a -f ${SSLSMP} ]; then if [ -f ${SSLCNF} -a -f ${SSLSMP} ]; then
if grep '^openssl_conf[[:space:]]*=[[:space:]]*openssl_def$' ${SSLCNF} >/dev/null 2>&1; then if grep '^openssl_conf[[:space:]]*=[[:space:]]*openssl_def$' ${SSLCNF} >/dev/null 2>&1; then
@ -74,7 +76,7 @@ if [ -f ${SSLCNF} -a -f ${SSLSMP} ]; then
fi fi
else else
CNFSZE=350 # Size in lines of original openssl.cnf CNFSZE=350 # Size in lines of original openssl.cnf
SMPSZE=46 # Size in lines of original sample config file SMPSZE=52 # Size in lines of original sample config file
CNFINS=9 # Line number in openssl.cnf to insert new line CNFINS=9 # Line number in openssl.cnf to insert new line
SMPUSE=11 # Line number in sample to copy from SMPUSE=11 # Line number in sample to copy from
if [ $(wc -l ${SSLCNF} | cut -d ' ' -f 1) -ne ${CNFSZE} ]; then if [ $(wc -l ${SSLCNF} | cut -d ' ' -f 1) -ne ${CNFSZE} ]; then