- Added opencryptoki-2.3.0-fix-nss-breakage.patch on upstream request.
This commit is contained in:
parent
b0b95907f5
commit
53b6bc9d56
39
opencryptoki-2.3.0-fix-nss-breakage.patch
Normal file
39
opencryptoki-2.3.0-fix-nss-breakage.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
Rajiv Andrade kindly asked me to apply this patch.
|
||||||
|
It's committed in upstream CVS since 2009-09-04.
|
||||||
|
-- Michal
|
||||||
|
|
||||||
|
Subject: [PATCH] Fix NSS breakage, don't change caller's C_Initialize args
|
||||||
|
From: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
Setting CKF_SERIAL_SESSION bit on CK_C_INITIALIZE_ARGS struct passed
|
||||||
|
by the caller is breaking at least one outstanding PKCS#11 user: NSS,
|
||||||
|
which qualifies this field as 'const'.
|
||||||
|
PKCS#11 standard doesn't specify this as a const field, but this
|
||||||
|
particular flag is depracated anyway and openCryptoki doesn't
|
||||||
|
really care for it, so leaving it alone won't probably cause any
|
||||||
|
harm.
|
||||||
|
|
||||||
|
|
||||||
|
Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
|
||||||
|
---
|
||||||
|
usr/lib/pkcs11/api/api_interface.c | 5 -----
|
||||||
|
1 files changed, 0 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/usr/lib/pkcs11/api/api_interface.c b/usr/lib/pkcs11/api/api_interface.c
|
||||||
|
index 57519d4..dabd711 100755
|
||||||
|
--- a/usr/lib/pkcs11/api/api_interface.c
|
||||||
|
+++ b/usr/lib/pkcs11/api/api_interface.c
|
||||||
|
@@ -3324,11 +3324,6 @@ C_Initialize ( CK_VOID_PTR pVoid )
|
||||||
|
LOGIT(LOG_DEBUG,"Can't create OS threads.... This is OK");
|
||||||
|
}
|
||||||
|
|
||||||
|
- /* CFK_SERIAL_SESSION is deprecated, so we should just turn
|
||||||
|
- * it on within the code automatically, instead of requiring
|
||||||
|
- * the application to do it. */
|
||||||
|
- pArg->flags |= CKF_SERIAL_SESSION;
|
||||||
|
-
|
||||||
|
// Since this is an initialization path, we will be verbose in the
|
||||||
|
// code rather than efficient.
|
||||||
|
//
|
||||||
|
--
|
||||||
|
1.6.2.5
|
@ -1,12 +1,13 @@
|
|||||||
Name: opencryptoki
|
Name: opencryptoki
|
||||||
Summary: Implementation of the PKCS#11 (Cryptoki) specification v2.11
|
Summary: Implementation of the PKCS#11 (Cryptoki) specification v2.11
|
||||||
Version: 2.3.0
|
Version: 2.3.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: CPL
|
License: CPL
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sourceforge.net/projects/opencryptoki
|
URL: http://sourceforge.net/projects/opencryptoki
|
||||||
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
Patch0: %{name}-2.2.8-do-not-create-group-in-pkcs11_startup.patch
|
Patch0: %{name}-2.2.8-do-not-create-group-in-pkcs11_startup.patch
|
||||||
|
Patch1: %{name}-2.3.0-fix-nss-breakage.patch
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
Requires(pre): shadow-utils coreutils sed
|
Requires(pre): shadow-utils coreutils sed
|
||||||
Requires(post): chkconfig
|
Requires(post): chkconfig
|
||||||
@ -46,6 +47,7 @@ based applications.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Upstream tarball has unnecessary executable perms set on the sources
|
# Upstream tarball has unnecessary executable perms set on the sources
|
||||||
@ -136,6 +138,9 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 07 2009 Michal Schmidt <mschmidt@redhat.com> 2.3.0-4
|
||||||
|
- Added opencryptoki-2.3.0-fix-nss-breakage.patch on upstream request.
|
||||||
|
|
||||||
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.3.0-3
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.3.0-3
|
||||||
- rebuilt with new openssl
|
- rebuilt with new openssl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user