use OpenSC's hooks to wrap and unwrap SM APDUs
sm_transmit_apdu is obsolete. libnpa and OpenSC can be used in parallel now. libnpa modifies OpenSC's card handle to add SM on the fly to any OpenSC command. This, for example, allows PKCS#XX commands in a SM channel established by libnpa.
This commit is contained in:
@@ -55,9 +55,9 @@ test -z "$OPENSC_LIBS" && OPENSC_LIBS="-lopensc"
|
||||
saved_LIBS="$LIBS"
|
||||
LIBS="$LDFLAGS $OPENSC_LIBS"
|
||||
|
||||
AC_MSG_CHECKING([for sc_perform_pace])
|
||||
AC_TRY_LINK_FUNC(sc_perform_pace, [ AC_MSG_RESULT([yes]) ],
|
||||
[ AC_MSG_ERROR([libopensc with PACE (git clone git://github.com/frankmorgner/OpenSC.git) not found, use ./configure OPENSC_LIBS=...]) ])
|
||||
AC_MSG_CHECKING([for iasecc_sm_external_authentication])
|
||||
AC_TRY_LINK_FUNC(iasecc_sm_external_authentication, [ AC_MSG_RESULT([yes]) ],
|
||||
[ AC_MSG_ERROR([libopensc configured with SM (git clone git://github.com/frankmorgner/OpenSC.git) not found, use ./configure OPENSC_LIBS=...]) ])
|
||||
|
||||
LIBS="$saved_LIBS"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user