From 0bc44e2cb14dfd5b05e971acf0d6f7cc025f54df Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Thu, 19 Jun 2014 22:38:42 +0200 Subject: [PATCH] added opensc.conf for windows binaries --- npa/cross/Makefile.am | 3 +++ npa/cross/opensc.conf_win32 | 41 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 npa/cross/opensc.conf_win32 diff --git a/npa/cross/Makefile.am b/npa/cross/Makefile.am index 8a5b9a1..45062b3 100644 --- a/npa/cross/Makefile.am +++ b/npa/cross/Makefile.am @@ -1,3 +1,5 @@ +EXTRA_DIST=opensc.conf_win32 + all-local: @echo Use \`$(MAKE) win\` to cross compile for Windows @echo Use \`$(MAKE) android\` to cross compile for Android @@ -15,6 +17,7 @@ win: TARGETDIR=$(WIN_TARGETDIR) \ LIBEAC=$(WIN_TARGETDIR)/bin/libeac-0.dll \ LIBNPA=$(WIN_TARGETDIR)/bin/libnpa-0.dll + cp opensc.conf_win32 $(WIN_TARGETDIR)/etc/opensc.conf diff --git a/npa/cross/opensc.conf_win32 b/npa/cross/opensc.conf_win32 new file mode 100644 index 0000000..41c0f2b --- /dev/null +++ b/npa/cross/opensc.conf_win32 @@ -0,0 +1,41 @@ +app default { + + # What card drivers to load at start-up + # + # A special value of 'internal' will load all + # statically linked drivers. If an unknown (ie. not + # internal) driver is supplied, a separate configuration + # configuration block has to be written for the driver. + # Default: internal + # NOTE: When "internal" keyword is used, must be last entry + # + card_drivers = npa, internal; + + # Card driver configuration blocks. + # + # For card drivers loaded from an external shared library/DLL, + # you need to specify the path name of the module + # + card_driver npa { + # The location of the driver library + module = libcardnpa-0.dll; + } + + + # PKCS #15 + framework pkcs15 { + # additional settings per driver + # + # For pkcs15 emulators loaded from an external shared + # library/DLL, you need to specify the path name of the module + # and customize the card_atr example above correctly. + # + emulate npa { + # The location of the driver library + module = libpkcs15npa-0.dll; + + function = sc_pkcs15emu_npa_init_ex; + can = 222222; + } + } +}