diff --git a/npa/configure.ac b/npa/configure.ac index 409e609..3066b39 100644 --- a/npa/configure.ac +++ b/npa/configure.ac @@ -61,8 +61,7 @@ AC_MSG_CHECKING([for iasecc_sm_external_authentication]) 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]) +AC_CHECK_FUNCS([sc_apdu_get_octets _sc_match_atr list_iterator_next]) CPPFLAGS="$saved_CPPFLAGS" LIBS="$saved_LIBS" diff --git a/npa/src/boxing.c b/npa/src/boxing.c index f654865..b901c80 100644 --- a/npa/src/boxing.c +++ b/npa/src/boxing.c @@ -46,6 +46,11 @@ #include "libopensc/apdu.c" #endif +#ifndef HAVE_LIST_ITERATOR_NEXT +#include "opensc/src/common/simclist.c" +#endif + + static const u8 boxing_cla = 0xff; static const u8 boxing_ins = 0x9a; static const u8 boxing_p1 = 0x04;