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 minidriverdiff -r1.24 -r1.25 pkgsrc/security/opensc/Makefile
(mef)
@@ -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 | |||
3 | OPENSC_PKG_VERSION= 0.15.0 | 3 | OPENSC_PKG_VERSION= 0.16.0 | |
4 | DISTNAME= opensc-${OPENSC_PKG_VERSION} | 4 | DISTNAME= opensc-${OPENSC_PKG_VERSION} | |
5 | PKGREVISION= 1 | |||
6 | CATEGORIES= security | 5 | CATEGORIES= security | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opensc/OpenSC/opensc-0.13.0/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opensc/OpenSC/opensc-0.13.0/} | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki | 9 | HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki | |
11 | COMMENT= Smart Card drivers and middleware | 10 | COMMENT= Smart Card drivers and middleware | |
12 | LICENSE= gnu-lgpl-v2.1 | 11 | LICENSE= gnu-lgpl-v2.1 | |
13 | 12 | |||
14 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | 13 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | |
15 | 14 | |||
16 | GNU_CONFIGURE= YES | 15 | GNU_CONFIGURE= YES | |
17 | USE_LIBTOOL= YES | 16 | USE_LIBTOOL= YES | |
18 | USE_OLD_DES_API= YES | 17 | USE_OLD_DES_API= YES |
@@ -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 $ | |
2 | bin/cardos-tool | 2 | bin/cardos-tool | |
3 | bin/cryptoflex-tool | 3 | bin/cryptoflex-tool | |
4 | bin/dnie-tool | 4 | bin/dnie-tool | |
5 | bin/eidenv | 5 | bin/eidenv | |
6 | bin/gids-tool | |||
6 | bin/iasecc-tool | 7 | bin/iasecc-tool | |
7 | bin/netkey-tool | 8 | bin/netkey-tool | |
8 | bin/openpgp-tool | 9 | bin/openpgp-tool | |
9 | bin/opensc-explorer | 10 | bin/opensc-explorer | |
10 | bin/opensc-tool | 11 | bin/opensc-tool | |
11 | bin/piv-tool | 12 | bin/piv-tool | |
12 | bin/pkcs11-tool | 13 | bin/pkcs11-tool | |
13 | bin/pkcs15-crypt | 14 | bin/pkcs15-crypt | |
14 | bin/pkcs15-init | 15 | bin/pkcs15-init | |
15 | bin/pkcs15-tool | 16 | bin/pkcs15-tool | |
16 | bin/sc-hsm-tool | 17 | bin/sc-hsm-tool | |
17 | bin/westcos-tool | 18 | bin/westcos-tool | |
18 | lib/libopensc.la | 19 | lib/libopensc.la | |
19 | lib/libsmm-local.la | 20 | lib/libsmm-local.la | |
20 | lib/onepin-opensc-pkcs11.la | 21 | lib/onepin-opensc-pkcs11.la | |
21 | lib/opensc-pkcs11.la | 22 | lib/opensc-pkcs11.la | |
22 | lib/pkcs11-spy.la | 23 | lib/pkcs11-spy.la | |
23 | lib/pkcs11/onepin-opensc-pkcs11.so | 24 | lib/pkcs11/onepin-opensc-pkcs11.so | |
24 | lib/pkcs11/opensc-pkcs11.so | 25 | lib/pkcs11/opensc-pkcs11.so | |
25 | lib/pkcs11/pkcs11-spy.so | 26 | lib/pkcs11/pkcs11-spy.so | |
26 | man/man1/cardos-tool.1 | 27 | man/man1/cardos-tool.1 | |
27 | man/man1/cryptoflex-tool.1 | 28 | man/man1/cryptoflex-tool.1 | |
28 | man/man1/dnie-tool.1 | 29 | man/man1/dnie-tool.1 | |
29 | man/man1/eidenv.1 | 30 | man/man1/eidenv.1 | |
31 | man/man1/gids-tool.1 | |||
30 | man/man1/iasecc-tool.1 | 32 | man/man1/iasecc-tool.1 | |
31 | man/man1/netkey-tool.1 | 33 | man/man1/netkey-tool.1 | |
32 | man/man1/openpgp-tool.1 | 34 | man/man1/openpgp-tool.1 | |
33 | man/man1/opensc-explorer.1 | 35 | man/man1/opensc-explorer.1 | |
34 | man/man1/opensc-tool.1 | 36 | man/man1/opensc-tool.1 | |
35 | man/man1/piv-tool.1 | 37 | man/man1/piv-tool.1 | |
36 | man/man1/pkcs11-tool.1 | 38 | man/man1/pkcs11-tool.1 | |
37 | man/man1/pkcs15-crypt.1 | 39 | man/man1/pkcs15-crypt.1 | |
38 | man/man1/pkcs15-init.1 | 40 | man/man1/pkcs15-init.1 | |
39 | man/man1/pkcs15-tool.1 | 41 | man/man1/pkcs15-tool.1 | |
40 | man/man1/sc-hsm-tool.1 | 42 | man/man1/sc-hsm-tool.1 | |
41 | man/man1/westcos-tool.1 | 43 | man/man1/westcos-tool.1 | |
42 | man/man5/pkcs15-profile.5 | 44 | man/man5/pkcs15-profile.5 | |
43 | share/doc/opensc/NEWS | 45 | share/doc/opensc/NEWS | |
44 | share/examples/opensc/opensc.conf | 46 | share/examples/opensc/opensc.conf | |
45 | share/opensc/asepcos.profile | 47 | share/opensc/asepcos.profile | |
46 | share/opensc/authentic.profile | 48 | share/opensc/authentic.profile | |
47 | share/opensc/cardos.profile | 49 | share/opensc/cardos.profile | |
48 | share/opensc/cyberflex.profile | 50 | share/opensc/cyberflex.profile | |
49 | share/opensc/entersafe.profile | 51 | share/opensc/entersafe.profile | |
50 | share/opensc/epass2003.profile | 52 | share/opensc/epass2003.profile | |
51 | share/opensc/flex.profile | 53 | share/opensc/flex.profile | |
54 | share/opensc/gids.profile | |||
52 | share/opensc/gpk.profile | 55 | share/opensc/gpk.profile | |
53 | share/opensc/ias_adele_admin1.profile | 56 | share/opensc/ias_adele_admin1.profile | |
54 | share/opensc/ias_adele_admin2.profile | 57 | share/opensc/ias_adele_admin2.profile | |
55 | share/opensc/ias_adele_common.profile | 58 | share/opensc/ias_adele_common.profile | |
56 | share/opensc/iasecc.profile | 59 | share/opensc/iasecc.profile | |
57 | share/opensc/iasecc_admin_eid.profile | 60 | share/opensc/iasecc_admin_eid.profile | |
58 | share/opensc/iasecc_generic_oberthur.profile | 61 | share/opensc/iasecc_generic_oberthur.profile | |
59 | share/opensc/iasecc_generic_pki.profile | 62 | share/opensc/iasecc_generic_pki.profile | |
60 | share/opensc/incrypto34.profile | 63 | share/opensc/incrypto34.profile | |
61 | share/opensc/isoApplet.profile | 64 | share/opensc/isoApplet.profile | |
62 | share/opensc/jcop.profile | 65 | share/opensc/jcop.profile | |
63 | share/opensc/miocos.profile | 66 | share/opensc/miocos.profile | |
64 | share/opensc/muscle.profile | 67 | share/opensc/muscle.profile |
@@ -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 | |||
3 | SHA1 (opensc-0.15.0.tar.gz) = 5bacb5814337af32ee85d49f420acc69ac961106 | 3 | SHA1 (opensc-0.16.0.tar.gz) = 8a5616ac514c4fbad50b0505dc61f082de3e479c | |
4 | RMD160 (opensc-0.15.0.tar.gz) = 90ff185bc82ab0d2b6487ca0fc00310609a674a5 | 4 | RMD160 (opensc-0.16.0.tar.gz) = f785df816560493baceb71e2197346c724fc0834 | |
5 | SHA512 (opensc-0.15.0.tar.gz) = 8d5f84206faa7f673be4ea559025b1317c69636bee0265c466f4fdc5a0a78c7f091df946f90d7622cc5497d57a782bce47edbc67b2c7338053dcd848708399ac | 5 | SHA512 (opensc-0.16.0.tar.gz) = 15f7d62388dde6dad226acab3cd54f8e2f2f53684dc0cb976c6fc6fbdb4487be931ca69bf965ab07c51efd16be64d5411f10bacea11a07fc823c92dd7bb25139 | |
6 | Size (opensc-0.15.0.tar.gz) = 2153075 bytes | 6 | Size (opensc-0.16.0.tar.gz) = 1760418 bytes | |
7 | SHA1 (patch-aa) = 6863c837654b4fde76fbc7a95fe7fdae33590a50 | 7 | SHA1 (patch-aa) = 8344b445def1b1b63519e97fd0185c5cf4b3b636 | |
8 | SHA1 (patch-ab) = c8a8a21ed7fe387aa93e6454e30d284d77ffd67c | 8 | SHA1 (patch-ab) = c8a8a21ed7fe387aa93e6454e30d284d77ffd67c | |
9 | SHA1 (patch-configure.ac) = 7cf3afaf292c89ec990935e5a5d64bd015a9b1ce | 9 | SHA1 (patch-configure.ac) = 9031a51162d883b3e3118820d400e07ef99dbad9 | |
10 | SHA1 (patch-doc_tools_Makefile.am) = bbfb4ae09bfeef5f4d2ca36da3efda6d1a699a0d | 10 | SHA1 (patch-doc_tools_Makefile.am) = bbfb4ae09bfeef5f4d2ca36da3efda6d1a699a0d | |
11 | SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb | 11 | SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb | |
12 | SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669 | 12 | SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669 | |
13 | SHA1 (patch-src_libopensc_log.c) = eabe66dd52cedf81b3dffa01e5855a6b4a70416a | 13 | SHA1 (patch-src_libopensc_log.c) = 1f6107d56298bf3b88d22c627dee6a9840b7309a | |
14 | SHA1 (patch-src_pkcs11_pkcs11-global.c) = 3390c14a61f4b50d7903faa1c300b3677a4831ac |
@@ -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 | |||
3 | Disable installation of config file, because pkgsrc installs config | 3 | Disable installation of config file, because pkgsrc installs config | |
4 | files as examples. | 4 | files 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" |
@@ -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 | |||
3 | This hunk has been in pkgsrc for a long time; it needs a comment! | 3 | This 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 |
@@ -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; |