added a minimal nPA card driver for OpenSC

use as something like

    env OPENSC_CONF=$PWD/vsmartcard/npa/opensc.conf opensc-tool --name
This commit is contained in:
Frank Morgner
2014-02-18 01:24:27 +01:00
parent 0f96feb7c1
commit 15b08e5384
7 changed files with 253 additions and 55 deletions

View File

@@ -62,6 +62,7 @@ AC_TRY_LINK_FUNC(iasecc_sm_external_authentication,
[ AC_MSG_RESULT([yes]) ],
[ AC_MSG_ERROR([Cannot link against libopensc with SM]) ])
AC_CHECK_FUNCS([sc_apdu_get_octets])
AC_CHECK_FUNCS([_sc_match_atr])
CPPFLAGS="$saved_CPPFLAGS"
LIBS="$saved_LIBS"
@@ -161,6 +162,30 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([getline memmove memset strerror gettimeofday strtol])
AC_SUBST(DYN_LIB_EXT)
case "$host" in
*-*-darwin*)
DYN_LIB_EXT="dylib"
;;
*-*-freebsd*)
DYN_LIB_EXT="so"
;;
*-*-openbsd*)
DYN_LIB_EXT="so.0.0"
;;
*-*-solaris*)
DYN_LIB_EXT="so"
;;
*-*-dragonfly*)
DYN_LIB_EXT="so"
;;
*-*-cygwin*)
DYN_LIB_EXT="dll"
;;
*)
DYN_LIB_EXT="so"
esac
cat << EOF
${PACKAGE} has been configured with following options: