Thu Aug 4 13:08:25 2016 UTC ()
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


(mef)
diff -r1.24 -r1.25 pkgsrc/security/opensc/Makefile
diff -r1.8 -r1.9 pkgsrc/security/opensc/PLIST
diff -r1.13 -r1.14 pkgsrc/security/opensc/distinfo
diff -r1.5 -r1.6 pkgsrc/security/opensc/patches/patch-aa
diff -r1.2 -r1.3 pkgsrc/security/opensc/patches/patch-configure.ac
diff -r1.2 -r1.3 pkgsrc/security/opensc/patches/patch-src_libopensc_log.c
diff -r1.4 -r0 pkgsrc/security/opensc/patches/patch-src_pkcs11_pkcs11-global.c

cvs diff -r1.24 -r1.25 pkgsrc/security/opensc/Makefile (expand / switch to unified diff)

--- pkgsrc/security/opensc/Makefile 2016/03/05 11:29:22 1.24
+++ pkgsrc/security/opensc/Makefile 2016/08/04 13:08:25 1.25
@@ -1,18 +1,17 @@ @@ -1,18 +1,17 @@
1# $NetBSD: Makefile,v 1.24 2016/03/05 11:29:22 jperkin Exp $ 1# $NetBSD: Makefile,v 1.25 2016/08/04 13:08:25 mef Exp $
2 2
3OPENSC_PKG_VERSION= 0.15.0 3OPENSC_PKG_VERSION= 0.16.0
4DISTNAME= opensc-${OPENSC_PKG_VERSION} 4DISTNAME= opensc-${OPENSC_PKG_VERSION}
5PKGREVISION= 1 
6CATEGORIES= security 5CATEGORIES= security
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opensc/OpenSC/opensc-0.13.0/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opensc/OpenSC/opensc-0.13.0/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki 9HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki
11COMMENT= Smart Card drivers and middleware 10COMMENT= Smart Card drivers and middleware
12LICENSE= gnu-lgpl-v2.1 11LICENSE= gnu-lgpl-v2.1
13 12
14BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl 13BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
15 14
16GNU_CONFIGURE= YES 15GNU_CONFIGURE= YES
17USE_LIBTOOL= YES 16USE_LIBTOOL= YES
18USE_OLD_DES_API= YES 17USE_OLD_DES_API= YES

cvs diff -r1.8 -r1.9 pkgsrc/security/opensc/PLIST (expand / switch to unified diff)

--- pkgsrc/security/opensc/PLIST 2015/09/07 19:59:42 1.8
+++ pkgsrc/security/opensc/PLIST 2016/08/04 13:08:25 1.9
@@ -1,64 +1,67 @@ @@ -1,64 +1,67 @@
1@comment $NetBSD: PLIST,v 1.8 2015/09/07 19:59:42 gdt Exp $ 1@comment $NetBSD: PLIST,v 1.9 2016/08/04 13:08:25 mef Exp $
2bin/cardos-tool 2bin/cardos-tool
3bin/cryptoflex-tool 3bin/cryptoflex-tool
4bin/dnie-tool 4bin/dnie-tool
5bin/eidenv 5bin/eidenv
 6bin/gids-tool
6bin/iasecc-tool 7bin/iasecc-tool
7bin/netkey-tool 8bin/netkey-tool
8bin/openpgp-tool 9bin/openpgp-tool
9bin/opensc-explorer 10bin/opensc-explorer
10bin/opensc-tool 11bin/opensc-tool
11bin/piv-tool 12bin/piv-tool
12bin/pkcs11-tool 13bin/pkcs11-tool
13bin/pkcs15-crypt 14bin/pkcs15-crypt
14bin/pkcs15-init 15bin/pkcs15-init
15bin/pkcs15-tool 16bin/pkcs15-tool
16bin/sc-hsm-tool 17bin/sc-hsm-tool
17bin/westcos-tool 18bin/westcos-tool
18lib/libopensc.la 19lib/libopensc.la
19lib/libsmm-local.la 20lib/libsmm-local.la
20lib/onepin-opensc-pkcs11.la 21lib/onepin-opensc-pkcs11.la
21lib/opensc-pkcs11.la 22lib/opensc-pkcs11.la
22lib/pkcs11-spy.la 23lib/pkcs11-spy.la
23lib/pkcs11/onepin-opensc-pkcs11.so 24lib/pkcs11/onepin-opensc-pkcs11.so
24lib/pkcs11/opensc-pkcs11.so 25lib/pkcs11/opensc-pkcs11.so
25lib/pkcs11/pkcs11-spy.so 26lib/pkcs11/pkcs11-spy.so
26man/man1/cardos-tool.1 27man/man1/cardos-tool.1
27man/man1/cryptoflex-tool.1 28man/man1/cryptoflex-tool.1
28man/man1/dnie-tool.1 29man/man1/dnie-tool.1
29man/man1/eidenv.1 30man/man1/eidenv.1
 31man/man1/gids-tool.1
30man/man1/iasecc-tool.1 32man/man1/iasecc-tool.1
31man/man1/netkey-tool.1 33man/man1/netkey-tool.1
32man/man1/openpgp-tool.1 34man/man1/openpgp-tool.1
33man/man1/opensc-explorer.1 35man/man1/opensc-explorer.1
34man/man1/opensc-tool.1 36man/man1/opensc-tool.1
35man/man1/piv-tool.1 37man/man1/piv-tool.1
36man/man1/pkcs11-tool.1 38man/man1/pkcs11-tool.1
37man/man1/pkcs15-crypt.1 39man/man1/pkcs15-crypt.1
38man/man1/pkcs15-init.1 40man/man1/pkcs15-init.1
39man/man1/pkcs15-tool.1 41man/man1/pkcs15-tool.1
40man/man1/sc-hsm-tool.1 42man/man1/sc-hsm-tool.1
41man/man1/westcos-tool.1 43man/man1/westcos-tool.1
42man/man5/pkcs15-profile.5 44man/man5/pkcs15-profile.5
43share/doc/opensc/NEWS 45share/doc/opensc/NEWS
44share/examples/opensc/opensc.conf 46share/examples/opensc/opensc.conf
45share/opensc/asepcos.profile 47share/opensc/asepcos.profile
46share/opensc/authentic.profile 48share/opensc/authentic.profile
47share/opensc/cardos.profile 49share/opensc/cardos.profile
48share/opensc/cyberflex.profile 50share/opensc/cyberflex.profile
49share/opensc/entersafe.profile 51share/opensc/entersafe.profile
50share/opensc/epass2003.profile 52share/opensc/epass2003.profile
51share/opensc/flex.profile 53share/opensc/flex.profile
 54share/opensc/gids.profile
52share/opensc/gpk.profile 55share/opensc/gpk.profile
53share/opensc/ias_adele_admin1.profile 56share/opensc/ias_adele_admin1.profile
54share/opensc/ias_adele_admin2.profile 57share/opensc/ias_adele_admin2.profile
55share/opensc/ias_adele_common.profile 58share/opensc/ias_adele_common.profile
56share/opensc/iasecc.profile 59share/opensc/iasecc.profile
57share/opensc/iasecc_admin_eid.profile 60share/opensc/iasecc_admin_eid.profile
58share/opensc/iasecc_generic_oberthur.profile 61share/opensc/iasecc_generic_oberthur.profile
59share/opensc/iasecc_generic_pki.profile 62share/opensc/iasecc_generic_pki.profile
60share/opensc/incrypto34.profile 63share/opensc/incrypto34.profile
61share/opensc/isoApplet.profile 64share/opensc/isoApplet.profile
62share/opensc/jcop.profile 65share/opensc/jcop.profile
63share/opensc/miocos.profile 66share/opensc/miocos.profile
64share/opensc/muscle.profile 67share/opensc/muscle.profile

cvs diff -r1.13 -r1.14 pkgsrc/security/opensc/distinfo (expand / switch to unified diff)

--- pkgsrc/security/opensc/distinfo 2015/11/04 01:17:52 1.13
+++ pkgsrc/security/opensc/distinfo 2016/08/04 13:08:25 1.14
@@ -1,14 +1,13 @@ @@ -1,14 +1,13 @@
1$NetBSD: distinfo,v 1.13 2015/11/04 01:17:52 agc Exp $ 1$NetBSD: distinfo,v 1.14 2016/08/04 13:08:25 mef Exp $
2 2
3SHA1 (opensc-0.15.0.tar.gz) = 5bacb5814337af32ee85d49f420acc69ac961106 3SHA1 (opensc-0.16.0.tar.gz) = 8a5616ac514c4fbad50b0505dc61f082de3e479c
4RMD160 (opensc-0.15.0.tar.gz) = 90ff185bc82ab0d2b6487ca0fc00310609a674a5 4RMD160 (opensc-0.16.0.tar.gz) = f785df816560493baceb71e2197346c724fc0834
5SHA512 (opensc-0.15.0.tar.gz) = 8d5f84206faa7f673be4ea559025b1317c69636bee0265c466f4fdc5a0a78c7f091df946f90d7622cc5497d57a782bce47edbc67b2c7338053dcd848708399ac 5SHA512 (opensc-0.16.0.tar.gz) = 15f7d62388dde6dad226acab3cd54f8e2f2f53684dc0cb976c6fc6fbdb4487be931ca69bf965ab07c51efd16be64d5411f10bacea11a07fc823c92dd7bb25139
6Size (opensc-0.15.0.tar.gz) = 2153075 bytes 6Size (opensc-0.16.0.tar.gz) = 1760418 bytes
7SHA1 (patch-aa) = 6863c837654b4fde76fbc7a95fe7fdae33590a50 7SHA1 (patch-aa) = 8344b445def1b1b63519e97fd0185c5cf4b3b636
8SHA1 (patch-ab) = c8a8a21ed7fe387aa93e6454e30d284d77ffd67c 8SHA1 (patch-ab) = c8a8a21ed7fe387aa93e6454e30d284d77ffd67c
9SHA1 (patch-configure.ac) = 7cf3afaf292c89ec990935e5a5d64bd015a9b1ce 9SHA1 (patch-configure.ac) = 9031a51162d883b3e3118820d400e07ef99dbad9
10SHA1 (patch-doc_tools_Makefile.am) = bbfb4ae09bfeef5f4d2ca36da3efda6d1a699a0d 10SHA1 (patch-doc_tools_Makefile.am) = bbfb4ae09bfeef5f4d2ca36da3efda6d1a699a0d
11SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb 11SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb
12SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669 12SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669
13SHA1 (patch-src_libopensc_log.c) = eabe66dd52cedf81b3dffa01e5855a6b4a70416a 13SHA1 (patch-src_libopensc_log.c) = 1f6107d56298bf3b88d22c627dee6a9840b7309a
14SHA1 (patch-src_pkcs11_pkcs11-global.c) = 3390c14a61f4b50d7903faa1c300b3677a4831ac 

cvs diff -r1.5 -r1.6 pkgsrc/security/opensc/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/security/opensc/patches/Attic/patch-aa 2015/09/07 19:59:42 1.5
+++ pkgsrc/security/opensc/patches/Attic/patch-aa 2016/08/04 13:08:25 1.6
@@ -1,21 +1,21 @@ @@ -1,21 +1,21 @@
1$NetBSD: patch-aa,v 1.5 2015/09/07 19:59:42 gdt Exp $ 1$NetBSD: patch-aa,v 1.6 2016/08/04 13:08:25 mef Exp $
2 2
3Disable installation of config file, because pkgsrc installs config 3Disable installation of config file, because pkgsrc installs config
4files as examples. 4files as examples.
5 5
6--- etc/Makefile.am.orig 2015-05-16 20:30:24.000000000 +0000 6--- etc/Makefile.am.orig 2016-05-31 16:36:09.000000000 +0900
7+++ etc/Makefile.am 7+++ etc/Makefile.am 2016-08-04 21:48:05.000000000 +0900
8@@ -23,13 +23,5 @@ opensc.conf: opensc.conf.in force 8@@ -28,13 +28,5 @@ opensc.conf: opensc.conf.in force
9 -e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \ 9 -e 's|@PROFILE_DIR_DEFAULT[@]|$(PROFILE_DIR_DEFAULT)|g' \
10 < $< > $@ 10 < $< > $@
11  11
12-install-exec-hook: opensc.conf 12-install-exec-hook: opensc.conf
13- $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" 13- $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
14- if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \ 14- if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
15- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \ 15- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \
16- else \ 16- else \
17- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \ 17- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \
18- fi 18- fi
19- 19-
20 uninstall-hook: opensc.conf 20 uninstall-hook: opensc.conf
21 rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf" 21 rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf"

cvs diff -r1.2 -r1.3 pkgsrc/security/opensc/patches/patch-configure.ac (expand / switch to unified diff)

--- pkgsrc/security/opensc/patches/patch-configure.ac 2015/09/07 19:59:42 1.2
+++ pkgsrc/security/opensc/patches/patch-configure.ac 2016/08/04 13:08:25 1.3
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1$NetBSD: patch-configure.ac,v 1.2 2015/09/07 19:59:42 gdt Exp $ 1$NetBSD: patch-configure.ac,v 1.3 2016/08/04 13:08:25 mef Exp $
2 2
3This hunk has been in pkgsrc for a long time; it needs a comment! 3This hunk has been in pkgsrc for a long time; it needs a comment!
4 4
5--- configure.ac.orig 2015-05-16 20:30:24.000000000 +0000 5--- configure.ac.orig 2016-06-04 08:22:08.000000000 +0900
6+++ configure.ac 6+++ configure.ac 2016-08-04 21:50:22.000000000 +0900
7@@ -344,17 +344,6 @@ if test "${WIN32}" = "no"; then 7@@ -384,17 +384,6 @@ if test "${WIN32}" = "no"; then
8 AC_SEARCH_LIBS([dlopen], [dl dld], [], [ 8 AC_SEARCH_LIBS([dlopen], [dl dld], [], [
9 AC_MSG_ERROR([unable to find the dlopen() function]) 9 AC_MSG_ERROR([unable to find the dlopen() function])
10 ]) 10 ])
11- 11-
12- dnl Special check for pthread support. 12- dnl Special check for pthread support.
13- AX_PTHREAD( 13- AX_PTHREAD(
14- [AC_DEFINE( 14- [AC_DEFINE(
15- [HAVE_PTHREAD], 15- [HAVE_PTHREAD],
16- [1], 16- [1],
17- [Define if you have POSIX threads libraries and header files.] 17- [Define if you have POSIX threads libraries and header files.]
18- )], 18- )],
19- [AC_MSG_ERROR([POSIX thread support required])] 19- [AC_MSG_ERROR([POSIX thread support required])]
20- ) 20- )
21- CC="${PTHREAD_CC}" 21- CC="${PTHREAD_CC}"
22 fi 22 fi
23  23
24 if test "${enable_minidriver}" = "yes"; then 24 if test "${enable_thread_locking}" = "yes"; then

cvs diff -r1.2 -r1.3 pkgsrc/security/opensc/patches/patch-src_libopensc_log.c (expand / switch to unified diff)

--- pkgsrc/security/opensc/patches/patch-src_libopensc_log.c 2015/09/07 19:59:42 1.2
+++ pkgsrc/security/opensc/patches/patch-src_libopensc_log.c 2016/08/04 13:08:25 1.3
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1$NetBSD: patch-src_libopensc_log.c,v 1.2 2015/09/07 19:59:42 gdt Exp $ 1$NetBSD: patch-src_libopensc_log.c,v 1.3 2016/08/04 13:08:25 mef Exp $
2 2
3--- src/libopensc/log.c.orig 2015-05-16 20:30:24.000000000 +0000 3--- src/libopensc/log.c.orig 2016-05-31 16:36:09.000000000 +0900
4+++ src/libopensc/log.c 4+++ src/libopensc/log.c 2016-08-04 21:52:53.000000000 +0900
5@@ -91,7 +91,13 @@ static void sc_do_log_va(sc_context_t *c 5@@ -91,7 +91,13 @@ static void sc_do_log_va(sc_context_t *c
6 gettimeofday (&tv, NULL); 6 gettimeofday (&tv, NULL);
7 tm = localtime (&tv.tv_sec); 7 tm = localtime (&tv.tv_sec);
8 strftime (time_string, sizeof(time_string), "%H:%M:%S", tm); 8 strftime (time_string, sizeof(time_string), "%H:%M:%S", tm);
9- r = snprintf(p, left, "0x%lx %s.%03ld ", (unsigned long)pthread_self(), time_string, tv.tv_usec / 1000); 9- r = snprintf(p, left, "0x%lx %s.%03ld ", (unsigned long)pthread_self(), time_string, (long)tv.tv_usec / 1000);
10+ r = snprintf(p, left, "0x%lx %s.%03ld ", 10+ r = snprintf(p, left, "0x%lx %s.%03ld ",
11+#ifdef HAVE_PTHREAD 11+#ifdef HAVE_PTHREAD
12+ (unsigned long)pthread_self(), 12+ (unsigned long)pthread_self(),
13+#else 13+#else
14+ (unsigned long) 0, 14+ (unsigned long) 0,
15+#endif 15+#endif
16+ time_string, tv.tv_usec / 1000); 16+ time_string, tv.tv_usec / 1000);
17 #endif 17 #endif
18 p += r; 18 p += r;
19 left -= r; 19 left -= r;

File Deleted: pkgsrc/security/opensc/patches/Attic/patch-src_pkcs11_pkcs11-global.c