From 3063db90c092595faed5bce6ce86b9dfba61971665d98bf80cc89321f3b252ca Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 20 Mar 2009 18:35:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opensc?expand=0&rev=11 --- opensc-0.11.6.tar.bz2 | 3 --- opensc-0.11.7.tar.bz2 | 3 +++ opensc-code-fixes.patch | 22 ---------------------- opensc-gpk-profile.patch | 11 +++++++++++ opensc.changes | 13 +++++++++++++ opensc.spec | 21 ++++++++++++++++----- 6 files changed, 43 insertions(+), 30 deletions(-) delete mode 100644 opensc-0.11.6.tar.bz2 create mode 100644 opensc-0.11.7.tar.bz2 delete mode 100644 opensc-code-fixes.patch create mode 100644 opensc-gpk-profile.patch diff --git a/opensc-0.11.6.tar.bz2 b/opensc-0.11.6.tar.bz2 deleted file mode 100644 index b2e2f0f..0000000 --- a/opensc-0.11.6.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38ba637a940a3ee99f5e60ceb4fef9f61d09386ac2d3aa6331f4c5b58dea0db2 -size 1077790 diff --git a/opensc-0.11.7.tar.bz2 b/opensc-0.11.7.tar.bz2 new file mode 100644 index 0000000..d18ab63 --- /dev/null +++ b/opensc-0.11.7.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3215d440e07bdf16416b5dea148933fb8b9e0b045fdfd8376b3464e342e3362 +size 1066717 diff --git a/opensc-code-fixes.patch b/opensc-code-fixes.patch deleted file mode 100644 index 345d7fc..0000000 --- a/opensc-code-fixes.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- src/libopensc/card-entersafe.c -+++ src/libopensc/card-entersafe.c -@@ -913,7 +913,7 @@ - return entersafe_compute_with_prkey(card,crgram,crgram_len,out,outlen); - } - --static int entersafe_init_pin_info(struct sc_pin_cmd_pin *pin, unsigned int num) -+static void entersafe_init_pin_info(struct sc_pin_cmd_pin *pin, unsigned int num) - { - pin->encoding = SC_PIN_ENCODING_ASCII; - pin->min_length = 4; ---- src/libopensc/card-gemsafeV1.c -+++ src/libopensc/card-gemsafeV1.c -@@ -332,7 +332,7 @@ - - tag = sc_asn1_find_tag(ctx, p, len, 0x8C, &tlen); - if (tag) { -- r = gemsafe_setacl(card, file, tag, type == "DF" ? 1 : 0); -+ r = gemsafe_setacl(card, file, tag, strcmp(type, "DF") ? 0 : 1); - if (r < 0) { - sc_debug(ctx, "unable to set ACL\n"); - return SC_ERROR_INTERNAL; diff --git a/opensc-gpk-profile.patch b/opensc-gpk-profile.patch new file mode 100644 index 0000000..3a7e66b --- /dev/null +++ b/opensc-gpk-profile.patch @@ -0,0 +1,11 @@ +--- src/pkcs15init/gpk.profile ++++ src/pkcs15init/gpk.profile +@@ -74,7 +74,7 @@ + + # private data objects are stored in transparent EFs. + EF privdata { +- file-id = 3300; ++ file-id = 3220; + structure = transparent; + ACL = *=NEVER, + READ=$PIN, diff --git a/opensc.changes b/opensc.changes index 867bc6c..dad6818 100644 --- a/opensc.changes +++ b/opensc.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Mar 17 18:01:29 CET 2009 - sbrabec@suse.cz + +- Updated to version 0.11.7: + * hide_empty_slots now on by default? small logic change? + * ruToken driver was updated. + * openct virtual readers reduced to 2 by default. + * Security issue: Fix private data support. (bnc#480262, + CVE-2009-0368) + See http://en.opensuse.org/Smart_Cards/Advisories for more. + * Enable lock_login by default. + * Disable allow_soft_keygen by default. + ------------------------------------------------------------------- Wed Dec 10 12:34:56 CET 2008 - olh@suse.de diff --git a/opensc.spec b/opensc.spec index 554f69a..ec107cb 100644 --- a/opensc.spec +++ b/opensc.spec @@ -1,7 +1,7 @@ # -# spec file for package opensc (Version 0.11.6) +# spec file for package opensc (Version 0.11.7) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,18 +34,19 @@ Obsoletes: opensc-64bit %endif # Url: http://www.opensc-project.org/opensc/ -Version: 0.11.6 -Release: 5 +Version: 0.11.7 +Release: 1 Group: Productivity/Security Summary: OpenSC Smart Card Library License: LGPL v2.1 or later Requires: libopensc2 = %{version} pcsc-lite BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %{name}-%{version}.tar.bz2 -Patch: opensc-code-fixes.patch # Supress all ugly warnings related to required .so and .la files in the main package: Source2: %{name}-rpmlintrc # and also skip-check-libtool-deps (and add these dependencies to the devel package) +# PATCH-FIX-UPSTREAM opensc-gpk-profile.patch sbrabec@suse.cz -- Fix privdata file-id clask for GPK cards. +Patch: opensc-gpk-profile.patch %description OpenSC provides a set of libraries and utilities to access smart cards. @@ -183,6 +184,16 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/*.pc %changelog +* Tue Mar 17 2009 sbrabec@suse.cz +- Updated to version 0.11.7: + * hide_empty_slots now on by default? small logic change? + * ruToken driver was updated. + * openct virtual readers reduced to 2 by default. + * Security issue: Fix private data support. (bnc#480262, + CVE-2009-0368) + See http://en.opensuse.org/Smart_Cards/Advisories for more. + * Enable lock_login by default. + * Disable allow_soft_keygen by default. * Wed Dec 10 2008 olh@suse.de - use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade (bnc#437293)