pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/opensc Updated security/opensc to 0.16.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56fd8caba9a7
branches:  trunk
changeset: 350744:56fd8caba9a7
user:      mef <mef%pkgsrc.org@localhost>
date:      Thu Aug 04 13:08:25 2016 +0000

description:
Updated security/opensc to 0.16.0
--------------------------------
New in 0.16.0; 2016-05-15
* build
    link OpenSSL in static
    option: enable PKCS11 thread locking
* configuration
    use one configuration file for all systems
* tools:
    package revision as version
  ** pkcs11-tool
       keygen mechanism in pkcs11 tools
       write GOST public key
       fix CKA_SENSITIVE attribute of public keys
  ** opensc-explorer:
       added command find_tags
       allow ASN.1 decoding if the file seems incomplete
  ** pkcs15-tool:
       handle record-based files when doing file caching
       option to prine raw data
  ** sc-hsm-tool:
       status info support for SmartCard-HSM V2.0
  ** doc: some missing options are documented, added documentation
       for gid tool
* minidriver:
  support for ECC
  Windows x509 enrollment
  first implementation of CardDeleteContainer
  MD logs controlled by register and environment variable
* reader-pcsc
  fixed unreleased locks with pcsc-lite
  honour PC/SC pt 10 dwMaxAPDUDataSize
  added call back for getting vendor/product id
  restrict access to card handles after fork
  SCardGetAttrib is used to initialize reader's metadata
  by default only short APDUs supported
* pkcs11
  no slot reserved for hot plug
  no more slot created 'per-applications'
  atomic operation (TODO: expand)
  export all C_* symbols
  metadata initialized from package info
  fix registering pkcs11 mechanisms multiple times
  sloppy initialization for C_GetSlotInfo
* pkcs15
  cache of on-card files extended to application paths
  configuration option to enable/disable application
  make file cache dir configurable
  in key info data type introduced 'auxiliary data' -- container
      for the non-pkc15 data.
* OpenPGP
  support for Gnuk -- USB cryptographic token for GNU Privacy Guard
  build without OpenSSL
  implemented 'erase card'
  additional manufacturers
* MyEID
  support for 521 bit ECC keys
  ATRs for the new cards
* sc-hsm
  read/write support in minidriver
* rtecp
  delete keys
* GemSafeV1
  support for European Patent Office smart card
  sign with SHA256
* Gids
  first support for Gids smart card
* dnie
* Feitian PKI card
  new ATRs
* IsoApplet
  (fixes)
* starcos
  initial support for STARCOS 3.4 (German D-Trust cards)
* macosx
  install tokend to /Library/Security/ instead /System/Library/Security/
  fixed locking issue in pcsc reader
* PIV
  allow using of cards where default application in not PIV
  support for the Yubikey NEO
* italian-CNS
  italian-cns reg file for minidriver

diffstat:

 security/opensc/Makefile                                 |   5 +--
 security/opensc/PLIST                                    |   5 +++-
 security/opensc/distinfo                                 |  17 +++++++--------
 security/opensc/patches/patch-aa                         |  10 ++++----
 security/opensc/patches/patch-configure.ac               |  10 ++++----
 security/opensc/patches/patch-src_libopensc_log.c        |   8 +++---
 security/opensc/patches/patch-src_pkcs11_pkcs11-global.c |  17 ----------------
 7 files changed, 28 insertions(+), 44 deletions(-)

diffs (156 lines):

diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/Makefile
--- a/security/opensc/Makefile  Thu Aug 04 13:00:19 2016 +0000
+++ b/security/opensc/Makefile  Thu Aug 04 13:08:25 2016 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2016/03/05 11:29:22 jperkin Exp $
+# $NetBSD: Makefile,v 1.25 2016/08/04 13:08:25 mef Exp $
 
-OPENSC_PKG_VERSION=    0.15.0
+OPENSC_PKG_VERSION=    0.16.0
 DISTNAME=              opensc-${OPENSC_PKG_VERSION}
-PKGREVISION=           1
 CATEGORIES=            security
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=opensc/OpenSC/opensc-0.13.0/}
 
diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/PLIST
--- a/security/opensc/PLIST     Thu Aug 04 13:00:19 2016 +0000
+++ b/security/opensc/PLIST     Thu Aug 04 13:08:25 2016 +0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.8 2015/09/07 19:59:42 gdt Exp $
+@comment $NetBSD: PLIST,v 1.9 2016/08/04 13:08:25 mef Exp $
 bin/cardos-tool
 bin/cryptoflex-tool
 bin/dnie-tool
 bin/eidenv
+bin/gids-tool
 bin/iasecc-tool
 bin/netkey-tool
 bin/openpgp-tool
@@ -27,6 +28,7 @@
 man/man1/cryptoflex-tool.1
 man/man1/dnie-tool.1
 man/man1/eidenv.1
+man/man1/gids-tool.1
 man/man1/iasecc-tool.1
 man/man1/netkey-tool.1
 man/man1/openpgp-tool.1
@@ -49,6 +51,7 @@
 share/opensc/entersafe.profile
 share/opensc/epass2003.profile
 share/opensc/flex.profile
+share/opensc/gids.profile
 share/opensc/gpk.profile
 share/opensc/ias_adele_admin1.profile
 share/opensc/ias_adele_admin2.profile
diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/distinfo
--- a/security/opensc/distinfo  Thu Aug 04 13:00:19 2016 +0000
+++ b/security/opensc/distinfo  Thu Aug 04 13:08:25 2016 +0000
@@ -1,14 +1,13 @@
-$NetBSD: distinfo,v 1.13 2015/11/04 01:17:52 agc Exp $
+$NetBSD: distinfo,v 1.14 2016/08/04 13:08:25 mef Exp $
 
-SHA1 (opensc-0.15.0.tar.gz) = 5bacb5814337af32ee85d49f420acc69ac961106
-RMD160 (opensc-0.15.0.tar.gz) = 90ff185bc82ab0d2b6487ca0fc00310609a674a5
-SHA512 (opensc-0.15.0.tar.gz) = 8d5f84206faa7f673be4ea559025b1317c69636bee0265c466f4fdc5a0a78c7f091df946f90d7622cc5497d57a782bce47edbc67b2c7338053dcd848708399ac
-Size (opensc-0.15.0.tar.gz) = 2153075 bytes
-SHA1 (patch-aa) = 6863c837654b4fde76fbc7a95fe7fdae33590a50
+SHA1 (opensc-0.16.0.tar.gz) = 8a5616ac514c4fbad50b0505dc61f082de3e479c
+RMD160 (opensc-0.16.0.tar.gz) = f785df816560493baceb71e2197346c724fc0834
+SHA512 (opensc-0.16.0.tar.gz) = 15f7d62388dde6dad226acab3cd54f8e2f2f53684dc0cb976c6fc6fbdb4487be931ca69bf965ab07c51efd16be64d5411f10bacea11a07fc823c92dd7bb25139
+Size (opensc-0.16.0.tar.gz) = 1760418 bytes
+SHA1 (patch-aa) = 8344b445def1b1b63519e97fd0185c5cf4b3b636
 SHA1 (patch-ab) = c8a8a21ed7fe387aa93e6454e30d284d77ffd67c
-SHA1 (patch-configure.ac) = 7cf3afaf292c89ec990935e5a5d64bd015a9b1ce
+SHA1 (patch-configure.ac) = 9031a51162d883b3e3118820d400e07ef99dbad9
 SHA1 (patch-doc_tools_Makefile.am) = bbfb4ae09bfeef5f4d2ca36da3efda6d1a699a0d
 SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb
 SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669
-SHA1 (patch-src_libopensc_log.c) = eabe66dd52cedf81b3dffa01e5855a6b4a70416a
-SHA1 (patch-src_pkcs11_pkcs11-global.c) = 3390c14a61f4b50d7903faa1c300b3677a4831ac
+SHA1 (patch-src_libopensc_log.c) = 1f6107d56298bf3b88d22c627dee6a9840b7309a
diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/patches/patch-aa
--- a/security/opensc/patches/patch-aa  Thu Aug 04 13:00:19 2016 +0000
+++ b/security/opensc/patches/patch-aa  Thu Aug 04 13:08:25 2016 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-aa,v 1.5 2015/09/07 19:59:42 gdt Exp $
+$NetBSD: patch-aa,v 1.6 2016/08/04 13:08:25 mef Exp $
 
 Disable installation of config file, because pkgsrc installs config
 files as examples.
 
---- etc/Makefile.am.orig       2015-05-16 20:30:24.000000000 +0000
-+++ etc/Makefile.am
-@@ -23,13 +23,5 @@ opensc.conf: opensc.conf.in force
-               -e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \
+--- etc/Makefile.am.orig       2016-05-31 16:36:09.000000000 +0900
++++ etc/Makefile.am    2016-08-04 21:48:05.000000000 +0900
+@@ -28,13 +28,5 @@ opensc.conf: opensc.conf.in force
+               -e 's|@PROFILE_DIR_DEFAULT[@]|$(PROFILE_DIR_DEFAULT)|g' \
                < $< > $@
  
 -install-exec-hook: opensc.conf
diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/patches/patch-configure.ac
--- a/security/opensc/patches/patch-configure.ac        Thu Aug 04 13:00:19 2016 +0000
+++ b/security/opensc/patches/patch-configure.ac        Thu Aug 04 13:08:25 2016 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-configure.ac,v 1.2 2015/09/07 19:59:42 gdt Exp $
+$NetBSD: patch-configure.ac,v 1.3 2016/08/04 13:08:25 mef Exp $
 
 This hunk has been in pkgsrc for a long time; it needs a comment!
 
---- configure.ac.orig  2015-05-16 20:30:24.000000000 +0000
-+++ configure.ac
-@@ -344,17 +344,6 @@ if test "${WIN32}" = "no"; then
+--- configure.ac.orig  2016-06-04 08:22:08.000000000 +0900
++++ configure.ac       2016-08-04 21:50:22.000000000 +0900
+@@ -384,17 +384,6 @@ if test "${WIN32}" = "no"; then
        AC_SEARCH_LIBS([dlopen], [dl dld], [], [
                AC_MSG_ERROR([unable to find the dlopen() function])
        ])
@@ -21,4 +21,4 @@
 -      CC="${PTHREAD_CC}"
  fi
  
- if test "${enable_minidriver}" = "yes"; then
+ if test "${enable_thread_locking}" = "yes"; then
diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/patches/patch-src_libopensc_log.c
--- a/security/opensc/patches/patch-src_libopensc_log.c Thu Aug 04 13:00:19 2016 +0000
+++ b/security/opensc/patches/patch-src_libopensc_log.c Thu Aug 04 13:08:25 2016 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-src_libopensc_log.c,v 1.2 2015/09/07 19:59:42 gdt Exp $
+$NetBSD: patch-src_libopensc_log.c,v 1.3 2016/08/04 13:08:25 mef Exp $
 
---- src/libopensc/log.c.orig   2015-05-16 20:30:24.000000000 +0000
-+++ src/libopensc/log.c
+--- src/libopensc/log.c.orig   2016-05-31 16:36:09.000000000 +0900
++++ src/libopensc/log.c        2016-08-04 21:52:53.000000000 +0900
 @@ -91,7 +91,13 @@ static void sc_do_log_va(sc_context_t *c
        gettimeofday (&tv, NULL);
        tm = localtime (&tv.tv_sec);
        strftime (time_string, sizeof(time_string), "%H:%M:%S", tm);
--      r = snprintf(p, left, "0x%lx %s.%03ld ", (unsigned long)pthread_self(), time_string, tv.tv_usec / 1000);
+-      r = snprintf(p, left, "0x%lx %s.%03ld ", (unsigned long)pthread_self(), time_string, (long)tv.tv_usec / 1000);
 +      r = snprintf(p, left, "0x%lx %s.%03ld ",
 +#ifdef HAVE_PTHREAD
 +                   (unsigned long)pthread_self(),
diff -r b347ea35143e -r 56fd8caba9a7 security/opensc/patches/patch-src_pkcs11_pkcs11-global.c
--- a/security/opensc/patches/patch-src_pkcs11_pkcs11-global.c  Thu Aug 04 13:00:19 2016 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-src_pkcs11_pkcs11-global.c,v 1.4 2015/09/07 19:59:42 gdt Exp $
-
-Use correct size for malloc.
-
-Not yet reported upstream.
-
---- src/pkcs11/pkcs11-global.c.orig    2015-05-16 20:30:24.000000000 +0000
-+++ src/pkcs11/pkcs11-global.c
-@@ -46,7 +46,7 @@ extern CK_FUNCTION_LIST pkcs11_function_
- #include <pthread.h>
- CK_RV mutex_create(void **mutex)
- {
--      pthread_mutex_t *m = calloc(1, sizeof(*mutex));
-+      pthread_mutex_t *m = calloc(1, sizeof(*m));
-       if (m == NULL)
-               return CKR_GENERAL_ERROR;;
-       pthread_mutex_init(m, NULL);



Home | Main Index | Thread Index | Old Index