Hi all, This is an update for security/opensc.
After this is committed, I will put security/openct into the Attic: it's deprecated and OpenSC now uses pcsc-lite as its backend. Be sure to start the pcsc-lite daemon (/etc/rc.d/pcscd start) before using opensc. This remains valid for all the stuff related to pcsc-lite, like gnupg2 or wpa_supplicant. Works fine on my amd64 laptop: $ opensc-tool -l # Detected readers (pcsc) Nr. Card Features Name 0 Yes O2 Micro Oz776 00 00 $ opensc-tool -n Using reader with a card: O2 Micro Oz776 00 00 CryptoStick v1.2 (OpenPGP v2.0) $ opensc-tool -a Using reader with a card: O2 Micro Oz776 00 00 3b:da:18:ff:81:b1:fe:75:1f:03:00:31:c5:73:c0:01:40:00:90:00:0c $ opensc-explorer OpenSC Explorer version 0.13.0 Using reader with a card: O2 Micro Oz776 00 00 OpenSC [3F00]> ls FileID Type Size 004F wEF 16 005E wEF 6 [0065] DF 23 [006E] DF 217 [007A] DF 5 00C4 wEF 7 0101 wEF 0 0102 wEF 0 5F50 wEF 0 5F52 wEF 10 7F21 wEF 0 [A400] DF 141 A401 wEF 141 [B600] DF 141 B601 wEF 141 [B800] DF 141 B801 wEF 141 OpenSC [3F00]> cd 0065 OpenSC [3F00/0065]> ls FileID Type Size 005B wEF 12 5F2D wEF 2 5F35 wEF 1 OpenSC [3F00/0065]> cd .. OpenSC [3F00]> quit $ Comments? cheers! David Index: Makefile =================================================================== RCS file: /cvs/ports/security/opensc/Makefile,v retrieving revision 1.19 diff -u -p -u -p -r1.19 Makefile --- Makefile 21 Mar 2013 08:48:53 -0000 1.19 +++ Makefile 6 Jun 2013 10:04:19 -0000 @@ -1,50 +1,41 @@ # $OpenBSD: Makefile,v 1.19 2013/03/21 08:48:53 ajacoutot Exp $ +SHARED_ONLY= Yes + COMMENT= set of libraries and utilities to access smart cards -DISTNAME= opensc-0.11.13 -REVISION= 1 +DISTNAME= opensc-0.13.0 CATEGORIES= security -SHARED_LIBS += scconf 2.0 # .1.0 -SHARED_LIBS += opensc 2.0 # .1.0 -SHARED_LIBS += pkcs15init 2.0 # .1.0 -SHARED_LIBS += opensc 2.0 # .1.0 -SHARED_LIBS += pkcs15init 2.0 # .1.0 -MODGNU_SHARED_LIBS=opensc '' \ - pkcs15init '' \ - scam '' \ - scconf '' \ - pkcs11 '' + +SHARED_LIBS += opensc 3.0 # 3.0 +SHARED_LIBS += smm-local 0.0 # 3.0 HOMEPAGE= http://www.opensc-project.org/ +MAINTAINER= David Coppa <dco...@openbsd.org> + # LGPLv2.1 PERMIT_PACKAGE_CDROM= Yes -MASTER_SITES= ${HOMEPAGE}/files/opensc/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opensc/} -WANTLIB= c crypto ltdl ncurses readline z openct>=1 +WANTLIB= c crypto ncurses pthread readline z -LIB_DEPENDS= security/openct +BUILD_DEPENDS= textproc/docbook-xsl \ + security/pcsc-lite +RUN_DEPENDS= security/ccid USE_GMAKE= Yes -USE_GROFF = Yes -CONFIGURE_STYLE=gnu old +CONFIGURE_STYLE=autoconf +AUTOCONF_VERSION=2.67 CONFIGURE_ARGS= ${CONFIGURE_SHARED} \ --enable-static \ --sysconfdir=${SYSCONFDIR} \ - --enable-openct \ - --sysconfdir=${SYSCONFDIR} -CONFIGURE_ENV= PTHREAD_LIBS=-pthread \ - LTLIB_CFLAGS="-I${LOCALBASE}/include" \ - LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" + --enable-sm \ + --with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/PCSC" FAKE_FLAGS= mandir="${PREFIX}/man/" - -post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opensc - ${INSTALL_DATA} ${WRKSRC}/etc/opensc.conf \ - ${PREFIX}/share/examples/opensc .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/security/opensc/distinfo,v retrieving revision 1.6 diff -u -p -u -p -r1.6 distinfo --- distinfo 14 Sep 2010 10:32:06 -0000 1.6 +++ distinfo 6 Jun 2013 10:04:19 -0000 @@ -1,5 +1,2 @@ -MD5 (opensc-0.11.13.tar.gz) = mPoVHpR5QfnD8nQg/fR8EQ== -RMD160 (opensc-0.11.13.tar.gz) = zZAIZuUc1k+nxaMofNWBk97CZSg= -SHA1 (opensc-0.11.13.tar.gz) = QIs3QoYATD3xXsF4Vvaf1MKhrOs= -SHA256 (opensc-0.11.13.tar.gz) = qaQtbVH7UA80JI/NDUCDyZ0lvF5032D+TvoZtbTm2JA= -SIZE (opensc-0.11.13.tar.gz) = 1513327 +SHA256 (opensc-0.13.0.tar.gz) = q95GrlOxKzJz5AxTL/1PfUI6UeCRmlI0dhRTwXwImxQ= +SIZE (opensc-0.13.0.tar.gz) = 1946899 Index: patches/patch-configure =================================================================== RCS file: patches/patch-configure diff -N patches/patch-configure --- patches/patch-configure 27 Dec 2010 12:05:01 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ -$OpenBSD: patch-configure,v 1.5 2010/12/27 12:05:01 jasper Exp $ ---- configure.orig Tue Feb 16 10:32:16 2010 -+++ configure Mon Dec 27 13:04:02 2010 -@@ -8129,9 +8129,6 @@ fi - # This can be used to rebuild libtool when needed - LIBTOOL_DEPS="$ltmain" - --# Always use our own libtool. --LIBTOOL='$(SHELL) $(top_builddir)/libtool' -- - - - Index: patches/patch-configure_ac =================================================================== RCS file: patches/patch-configure_ac diff -N patches/patch-configure_ac --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-configure_ac 6 Jun 2013 10:04:19 -0000 @@ -0,0 +1,21 @@ +$OpenBSD$ + +libdl is not required on OpenBSD + +--- configure.ac.orig Tue Dec 4 15:43:40 2012 ++++ configure.ac Thu Jun 6 10:20:51 2013 +@@ -285,14 +285,6 @@ AC_CHECK_LIB( + ) + + if test "${WIN32}" = "no"; then +- dnl dl support +- AC_CHECK_LIB( +- [dl], +- [dlopen], +- , +- [AC_MSG_ERROR([libdl required])] +- ) +- + dnl Special check for pthread support. + AX_PTHREAD( + [AC_DEFINE( Index: patches/patch-etc_Makefile_in =================================================================== RCS file: patches/patch-etc_Makefile_in diff -N patches/patch-etc_Makefile_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-etc_Makefile_in 6 Jun 2013 10:04:19 -0000 @@ -0,0 +1,21 @@ +$OpenBSD$ + +Install config file under ${PREFIX}/share/examples/opensc/ + +--- etc/Makefile.in.orig Thu Jun 6 09:44:21 2013 ++++ etc/Makefile.in Thu Jun 6 09:47:50 2013 +@@ -428,12 +428,8 @@ opensc.conf: opensc.conf.in force + < $< > $@ + + install-exec-hook: opensc.conf +- $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" +- if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \ +- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \ +- else \ +- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \ +- fi ++ $(MKDIR_P) "$(DESTDIR)$(datadir)/examples/@PACKAGE@" ++ $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(datadir)/examples/@PACKAGE@/opensc.conf"; \ + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. Index: patches/patch-m4_libtool_m4 =================================================================== RCS file: patches/patch-m4_libtool_m4 diff -N patches/patch-m4_libtool_m4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-m4_libtool_m4 6 Jun 2013 10:04:19 -0000 @@ -0,0 +1,17 @@ +$OpenBSD$ + +Use our own libtool from /usr/bin/libtool + +--- m4/libtool.m4.orig Thu Jun 6 08:10:08 2013 ++++ m4/libtool.m4 Thu Jun 6 08:10:37 2013 +@@ -88,10 +88,6 @@ _LT_SET_OPTIONS([$0], [$1]) + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ltmain" + +-# Always use our own libtool. +-LIBTOOL='$(SHELL) $(top_builddir)/libtool' +-AC_SUBST(LIBTOOL)dnl +- + _LT_SETUP + + # Only expand once: Index: patches/patch-src_libopensc_card-acos5_c =================================================================== RCS file: patches/patch-src_libopensc_card-acos5_c diff -N patches/patch-src_libopensc_card-acos5_c --- patches/patch-src_libopensc_card-acos5_c 27 Dec 2010 15:30:11 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-src_libopensc_card-acos5_c,v 1.1 2010/12/27 15:30:11 jasper Exp $ - -Security fix for SA42658 -OpenSC Serial Number Processing Buffer Overflow Vulnerabilities. - -Patch from upstream svn: -https://www.opensc-project.org/opensc/changeset/4913 - ---- src/libopensc/card-acos5.c.orig Mon Dec 27 13:06:14 2010 -+++ src/libopensc/card-acos5.c Mon Dec 27 13:06:27 2010 -@@ -140,8 +140,8 @@ static int acos5_get_serialnr(sc_card_t * card, sc_ser - /* - * Cache serial number. - */ -- memcpy(card->serialnr.value, apdu.resp, apdu.resplen); -- card->serialnr.len = apdu.resplen; -+ memcpy(card->serialnr.value, apdu.resp, MIN(apdu.resplen, SC_MAX_SERIALNR)); -+ card->serialnr.len = MIN(apdu.resplen, SC_MAX_SERIALNR); - - /* - * Copy and return serial number. Index: patches/patch-src_libopensc_card-atrust-acos_c =================================================================== RCS file: patches/patch-src_libopensc_card-atrust-acos_c diff -N patches/patch-src_libopensc_card-atrust-acos_c --- patches/patch-src_libopensc_card-atrust-acos_c 27 Dec 2010 15:30:11 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-src_libopensc_card-atrust-acos_c,v 1.1 2010/12/27 15:30:11 jasper Exp $ - -Security fix for SA42658 -OpenSC Serial Number Processing Buffer Overflow Vulnerabilities. - -Patch from upstream svn: -https://www.opensc-project.org/opensc/changeset/4913 - ---- src/libopensc/card-atrust-acos.c.orig Mon Dec 27 13:04:23 2010 -+++ src/libopensc/card-atrust-acos.c Mon Dec 27 13:04:46 2010 -@@ -853,8 +853,8 @@ static int acos_get_serialnr(sc_card_t *card, sc_seria - if (apdu.sw1 != 0x90 || apdu.sw2 != 0x00) - return SC_ERROR_INTERNAL; - /* cache serial number */ -- memcpy(card->serialnr.value, apdu.resp, apdu.resplen); -- card->serialnr.len = apdu.resplen; -+ memcpy(card->serialnr.value, apdu.resp, MIN(apdu.resplen, SC_MAX_SERIALNR)); -+ card->serialnr.len = MIN(apdu.resplen, SC_MAX_SERIALNR); - /* copy and return serial number */ - memcpy(serial, &card->serialnr, sizeof(*serial)); - return SC_SUCCESS; Index: patches/patch-src_libopensc_card-starcos_c =================================================================== RCS file: patches/patch-src_libopensc_card-starcos_c diff -N patches/patch-src_libopensc_card-starcos_c --- patches/patch-src_libopensc_card-starcos_c 27 Dec 2010 15:30:11 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-src_libopensc_card-starcos_c,v 1.1 2010/12/27 15:30:11 jasper Exp $ - -Security fix for SA42658 -OpenSC Serial Number Processing Buffer Overflow Vulnerabilities. - -Patch from upstream svn: -https://www.opensc-project.org/opensc/changeset/4913 - ---- src/libopensc/card-starcos.c.orig Mon Dec 27 13:05:41 2010 -+++ src/libopensc/card-starcos.c Mon Dec 27 13:06:02 2010 -@@ -1289,8 +1289,8 @@ static int starcos_get_serialnr(sc_card_t *card, sc_se - if (apdu.sw1 != 0x90 || apdu.sw2 != 0x00) - return SC_ERROR_INTERNAL; - /* cache serial number */ -- memcpy(card->serialnr.value, apdu.resp, apdu.resplen); -- card->serialnr.len = apdu.resplen; -+ memcpy(card->serialnr.value, apdu.resp, MIN(apdu.resplen, SC_MAX_SERIALNR)); -+ card->serialnr.len = MIN(apdu.resplen, SC_MAX_SERIALNR); - /* copy and return serial number */ - memcpy(serial, &card->serialnr, sizeof(*serial)); - return SC_SUCCESS; Index: patches/patch-src_libopensc_cardctl_h =================================================================== RCS file: patches/patch-src_libopensc_cardctl_h diff -N patches/patch-src_libopensc_cardctl_h --- patches/patch-src_libopensc_cardctl_h 27 Dec 2010 15:30:11 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,17 +0,0 @@ -$OpenBSD: patch-src_libopensc_cardctl_h,v 1.1 2010/12/27 15:30:11 jasper Exp $ - -Provide a definition of MIN() in case it's not defined already. - ---- src/libopensc/cardctl.h.orig Mon Dec 27 13:11:32 2010 -+++ src/libopensc/cardctl.h Mon Dec 27 13:11:47 2010 -@@ -740,6 +740,10 @@ typedef struct sc_rtecp_genkey_data { - unsigned char *invq; - }; - -+#ifndef MIN -+#define MIN(a,b) (((a) < (b)) ? (a) : (b)) -+#endif -+ - #ifdef __cplusplus - } - #endif Index: patches/patch-src_pkcs11_Makefile_in =================================================================== RCS file: patches/patch-src_pkcs11_Makefile_in diff -N patches/patch-src_pkcs11_Makefile_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_pkcs11_Makefile_in 6 Jun 2013 10:04:19 -0000 @@ -0,0 +1,117 @@ +$OpenBSD$ + +Do not install shared modules under ${PREFIX}/lib/ and avoid the +nasty symlink dance + +Use --tag=disable-static to disable libtool static archives for +modules + +--- src/pkcs11/Makefile.in.orig Tue Dec 4 15:43:58 2012 ++++ src/pkcs11/Makefile.in Thu Jun 6 10:28:53 2013 +@@ -74,7 +74,7 @@ am__nobase_list = $(am__nobase_strip_setup); \ + am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +-am__installdirs = "$(DESTDIR)$(libdir)" ++am__installdirs = "$(DESTDIR)$(pkcs11dir)" + LTLIBRARIES = $(lib_LTLIBRARIES) + am__DEPENDENCIES_1 = + am__DEPENDENCIES_2 = $(top_builddir)/src/libopensc/libopensc.la \ +@@ -190,6 +190,7 @@ LIBOBJS = @LIBOBJS@ + LIBRARY_BITNESS = @LIBRARY_BITNESS@ + LIBS = @LIBS@ + LIBTOOL = @LIBTOOL@ ++LIBTOOLFLAGS = --tag=disable-static + LIPO = @LIPO@ + LN_S = @LN_S@ + LTLIBOBJS = @LTLIBOBJS@ +@@ -385,25 +386,25 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__aclocal_m4_deps): + install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) +- test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" +- @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ ++ test -z "$(pkcs11dir)" || $(MKDIR_P) "$(DESTDIR)$(pkcs11dir)" ++ @list='$(lib_LTLIBRARIES)'; test -n "$(pkcs11dir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ +- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ +- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ ++ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkcs11dir)'"; \ ++ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkcs11dir)"; \ + } + + uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) +- @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ ++ @list='$(lib_LTLIBRARIES)'; test -n "$(pkcs11dir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ +- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ +- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ ++ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkcs11dir)/$$f'"; \ ++ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkcs11dir)/$$f"; \ + done + + clean-libLTLIBRARIES: +@@ -424,9 +425,9 @@ $(top_builddir)/win32/versioninfo.lo: \ + $(top_builddir)/win32/$(am__dirstamp) \ + $(top_builddir)/win32/$(DEPDIR)/$(am__dirstamp) + opensc-pkcs11.la: $(opensc_pkcs11_la_OBJECTS) $(opensc_pkcs11_la_DEPENDENCIES) +- $(AM_V_CCLD)$(opensc_pkcs11_la_LINK) -rpath $(libdir) $(opensc_pkcs11_la_OBJECTS) $(opensc_pkcs11_la_LIBADD) $(LIBS) ++ $(AM_V_CCLD)$(opensc_pkcs11_la_LINK) -rpath $(pkcs11dir) $(opensc_pkcs11_la_OBJECTS) $(opensc_pkcs11_la_LIBADD) $(LIBS) + pkcs11-spy.la: $(pkcs11_spy_la_OBJECTS) $(pkcs11_spy_la_DEPENDENCIES) +- $(AM_V_CCLD)$(pkcs11_spy_la_LINK) -rpath $(libdir) $(pkcs11_spy_la_OBJECTS) $(pkcs11_spy_la_LIBADD) $(LIBS) ++ $(AM_V_CCLD)$(pkcs11_spy_la_LINK) -rpath $(pkcs11dir) $(pkcs11_spy_la_OBJECTS) $(pkcs11_spy_la_LIBADD) $(LIBS) + + mostlyclean-compile: + -rm -f *.$(OBJEXT) +@@ -566,7 +567,7 @@ check-am: all-am + check: check-am + all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) + installdirs: +- for dir in "$(DESTDIR)$(libdir)"; do \ ++ for dir in "$(DESTDIR)$(pkcs11dir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done + install: install-am +@@ -628,7 +629,6 @@ install-dvi-am: + + install-exec-am: install-libLTLIBRARIES + @$(NORMAL_INSTALL) +- $(MAKE) $(AM_MAKEFLAGS) install-exec-hook + install-html: install-html-am + + install-html-am: +@@ -676,7 +676,7 @@ uninstall-am: uninstall-libLTLIBRARIES + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ +- install-dvi-am install-exec install-exec-am install-exec-hook \ ++ install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ +@@ -700,18 +700,6 @@ pkcs11-jar: jar-dir + cp opensc_pkcs11_install.js jar-dir + signtool -Z"opensc-pkcs11.jar" -i"opensc_pkcs11_install.js" \ + -k"testcert" jar-dir +- +-@WIN32_TRUE@install-exec-hook: +-@WIN32_TRUE@ $(MKDIR_P) "$(DESTDIR)$(libdir)" +-@WIN32_TRUE@ for l in opensc-pkcs11.dll pkcs11-spy.dll; do \ +-@WIN32_TRUE@ mv "$(DESTDIR)$(libdir)/$$l" "$(DESTDIR)$(bindir)/$$l"; \ +-@WIN32_TRUE@ done +-@WIN32_FALSE@install-exec-hook: +-@WIN32_FALSE@ $(MKDIR_P) "$(DESTDIR)$(pkcs11dir)" +-@WIN32_FALSE@ for l in opensc-pkcs11$(PKCS11_SUFFIX) pkcs11-spy$(PKCS11_SUFFIX); do \ +-@WIN32_FALSE@ rm -f "$(DESTDIR)$(pkcs11dir)/$$l"; \ +-@WIN32_FALSE@ $(LN_S) ../$$l "$(DESTDIR)$(pkcs11dir)/$$l"; \ +-@WIN32_FALSE@ done + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. Index: pkg/DESCR =================================================================== RCS file: /cvs/ports/security/opensc/pkg/DESCR,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 DESCR --- pkg/DESCR 27 Nov 2005 11:01:14 -0000 1.1.1.1 +++ pkg/DESCR 6 Jun 2013 10:04:19 -0000 @@ -1,6 +1,6 @@ OpenSC provides a set of libraries and utilities to access smart cards. Its main focus is on cards that support cryptographic operations, and -facilitate their use in security applications such as mail encryption, +facilitates their use in security applications such as mail encryption, authentication, and digital signature. OpenSC implements the PKCS#11 API so applications supporting this API such as Mozilla Firefox and Thunderbird can use it. OpenSC implements the PKCS#15 standard and aims Index: pkg/PFRAG.shared =================================================================== RCS file: /cvs/ports/security/opensc/pkg/PFRAG.shared,v retrieving revision 1.3 diff -u -p -u -p -r1.3 PFRAG.shared --- pkg/PFRAG.shared 23 Dec 2008 19:10:33 -0000 1.3 +++ pkg/PFRAG.shared 6 Jun 2013 10:04:19 -0000 @@ -1,10 +1,3 @@ @comment $OpenBSD: PFRAG.shared,v 1.3 2008/12/23 19:10:33 jasper Exp $ -@lib lib/libopensc.so.${LIBopensc_VERSION} -@lib lib/libpkcs15init.so.${LIBpkcs15init_VERSION} -@lib lib/libscconf.so.${LIBscconf_VERSION} -lib/onepin-opensc-pkcs11.so -lib/opensc-pkcs11.so -lib/pkcs11-spy.so -lib/pkcs11/onepin-opensc-pkcs11.so lib/pkcs11/opensc-pkcs11.so lib/pkcs11/pkcs11-spy.so Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/security/opensc/pkg/PLIST,v retrieving revision 1.4 diff -u -p -u -p -r1.4 PLIST --- pkg/PLIST 14 Sep 2010 10:32:06 -0000 1.4 +++ pkg/PLIST 6 Jun 2013 10:04:19 -0000 @@ -1,11 +1,11 @@ @comment $OpenBSD: PLIST,v 1.4 2010/09/14 10:32:06 jasper Exp $ %%SHARED%% -bin/cardos-info @bin bin/cardos-tool @bin bin/cryptoflex-tool @bin bin/eidenv +@bin bin/iasecc-tool @bin bin/netkey-tool -bin/opensc-config +@bin bin/openpgp-tool @bin bin/opensc-explorer @bin bin/opensc-tool @bin bin/piv-tool @@ -13,115 +13,35 @@ bin/opensc-config @bin bin/pkcs15-crypt @bin bin/pkcs15-init @bin bin/pkcs15-tool -@bin bin/rutoken-tool +@bin bin/sc-hsm-tool @bin bin/westcos-tool -include/opensc/ -include/opensc/asn1.h -include/opensc/cardctl.h -include/opensc/compression.h -include/opensc/emv.h -include/opensc/errors.h -include/opensc/log.h -include/opensc/opensc.h -include/opensc/pkcs11-opensc.h -include/opensc/pkcs11.h -include/opensc/pkcs15-init.h -include/opensc/pkcs15.h -include/opensc/scconf.h -include/opensc/types.h -include/opensc/ui.h lib/libopensc.a lib/libopensc.la -lib/libpkcs15init.a -lib/libpkcs15init.la -lib/libscconf.a -lib/libscconf.la -lib/mozilla/ -lib/mozilla/plugins/ -lib/onepin-opensc-pkcs11.a -lib/onepin-opensc-pkcs11.la -lib/opensc-pkcs11.a -lib/opensc-pkcs11.la +@lib lib/libopensc.so.${LIBopensc_VERSION} +lib/libsmm-local.a +lib/libsmm-local.la +@lib lib/libsmm-local.so.${LIBsmm-local_VERSION} lib/pkcs11/ -lib/pkcs11-spy.a -lib/pkcs11-spy.la -lib/pkgconfig/ -lib/pkgconfig/libopensc.pc -lib/pkgconfig/libpkcs15init.pc -lib/pkgconfig/libscconf.pc +lib/pkcs11/opensc-pkcs11.la +lib/pkcs11/pkcs11-spy.la @man man/man1/cardos-tool.1 @man man/man1/cryptoflex-tool.1 +@man man/man1/eidenv.1 +@man man/man1/iasecc-tool.1 @man man/man1/netkey-tool.1 -@man man/man1/opensc-config.1 +@man man/man1/openpgp-tool.1 @man man/man1/opensc-explorer.1 @man man/man1/opensc-tool.1 +@man man/man1/piv-tool.1 @man man/man1/pkcs11-tool.1 @man man/man1/pkcs15-crypt.1 @man man/man1/pkcs15-init.1 @man man/man1/pkcs15-tool.1 +@man man/man1/sc-hsm-tool.1 @man man/man1/westcos-tool.1 -@man man/man3/sc_app_info_t.3 -@man man/man3/sc_append_record.3 -@man man/man3/sc_asn1_decode.3 -@man man/man3/sc_asn1_encode.3 -@man man/man3/sc_asn1_entry.3 -@man man/man3/sc_asn1_find_tag.3 -@man man/man3/sc_asn1_print_tags.3 -@man man/man3/sc_asn1_put_tag.3 -@man man/man3/sc_asn1_read_tag.3 -@man man/man3/sc_asn1_skip_tag.3 -@man man/man3/sc_asn1_verify_tag.3 -@man man/man3/sc_base64_decode.3 -@man man/man3/sc_base64_encode.3 -@man man/man3/sc_card_ctl.3 -@man man/man3/sc_card_t.3 -@man man/man3/sc_card_valid.3 -@man man/man3/sc_check_sw.3 -@man man/man3/sc_connect_card.3 -@man man/man3/sc_copy_asn1_entry.3 -@man man/man3/sc_create_file.3 -@man man/man3/sc_delete_file.3 -@man man/man3/sc_delete_record.3 -@man man/man3/sc_der_clear.3 -@man man/man3/sc_der_copy.3 -@man man/man3/sc_detect_card_presence.3 -@man man/man3/sc_disconnect_card.3 -@man man/man3/sc_enum_apps.3 -@man man/man3/sc_establish_context.3 -@man man/man3/sc_file_dup.3 -@man man/man3/sc_file_free.3 -@man man/man3/sc_file_new.3 -@man man/man3/sc_file_t.3 -@man man/man3/sc_find_app_by_aid.3 -@man man/man3/sc_find_pkcs15_app.3 -@man man/man3/sc_format_apdu.3 -@man man/man3/sc_format_asn1_entry.3 -@man man/man3/sc_free_apps.3 -@man man/man3/sc_get_cache_dir.3 -@man man/man3/sc_get_challenge.3 -@man man/man3/sc_get_data.3 -@man man/man3/sc_list_files.3 -@man man/man3/sc_lock.3 -@man man/man3/sc_make_cache_dir.3 -@man man/man3/sc_put_data.3 -@man man/man3/sc_read_binary.3 -@man man/man3/sc_read_record.3 -@man man/man3/sc_release_context.3 -@man man/man3/sc_select_file.3 -@man man/man3/sc_set_card_driver.3 -@man man/man3/sc_strerror.3 -@man man/man3/sc_transmit_apdu.3 -@man man/man3/sc_unlock.3 -@man man/man3/sc_update_binary.3 -@man man/man3/sc_update_dir.3 -@man man/man3/sc_update_record.3 -@man man/man3/sc_wait_for_event.3 -@man man/man3/sc_write_binary.3 -@man man/man3/sc_write_record.3 @man man/man5/pkcs15-profile.5 -share/doc/opensc/ -share/doc/opensc/NEWS -share/doc/opensc/README +@comment share/doc/opensc/ +@comment share/doc/opensc/NEWS share/examples/opensc/ share/examples/opensc/opensc.conf @mode 644 @@ -129,20 +49,31 @@ share/examples/opensc/opensc.conf @mode share/opensc/ share/opensc/asepcos.profile +share/opensc/authentic.profile share/opensc/cardos.profile share/opensc/cyberflex.profile share/opensc/entersafe.profile +share/opensc/epass2003.profile share/opensc/flex.profile share/opensc/gpk.profile +share/opensc/ias_adele_admin1.profile +share/opensc/ias_adele_admin2.profile +share/opensc/ias_adele_common.profile +share/opensc/iasecc.profile +share/opensc/iasecc_admin_eid.profile +share/opensc/iasecc_generic_oberthur.profile +share/opensc/iasecc_generic_pki.profile share/opensc/incrypto34.profile share/opensc/jcop.profile share/opensc/miocos.profile share/opensc/muscle.profile share/opensc/myeid.profile share/opensc/oberthur.profile +share/opensc/openpgp.profile share/opensc/pkcs15.profile share/opensc/rutoken.profile share/opensc/rutoken_ecp.profile +share/opensc/sc-hsm.profile share/opensc/setcos.profile share/opensc/starcos.profile share/opensc/westcos.profile