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:
@@ -14,9 +14,9 @@ MAINTAINERCLEANFILES = $(BUILT_SOURCES) npa-tool.ggo $(dist_man1_MANS)
|
||||
|
||||
dist_man1_MANS = npa-tool.1
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/npa -I$(top_srcdir)/src/opensc/src
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/opensc/src -DENABLE_SM
|
||||
|
||||
libnpa_la_SOURCES = sm.c scutil.c npa.c sslutil.c
|
||||
libnpa_la_SOURCES = iso-sm.c scutil.c npa.c
|
||||
libnpa_la_LIBADD = $(OPENSSL_LIBS) $(OPENPACE_LIBS) $(OPENSC_LIBS)
|
||||
libnpa_la_CFLAGS = $(OPENSSL_CFLAGS) $(OPENPACE_CFLAGS)
|
||||
libnpa_la_LDFLAGS = -no-undefined
|
||||
@@ -56,6 +56,6 @@ noinst_HEADERS = \
|
||||
sslutil.h
|
||||
|
||||
nobase_include_HEADERS = \
|
||||
npa/sm.h \
|
||||
npa/iso-sm.h \
|
||||
npa/npa.h \
|
||||
npa/scutil.h
|
||||
|
||||
Reference in New Issue
Block a user