I am trying to build the cardmod Windows Minidriver using the http://www.opensc-project.org/opensc/wiki/MiniDriver and http://www.opensc-project.org/build/ and an svn checkout of the build trunk.
François sent me a prebuilt package last night that I may also try. But I have some questions about the version of the cngsdk.msi to be used. Build environment: Ubuntu Lucid 32 bit gcc-mingw32 4.4.2-3 mingw32-binutils 2.20-0.1 nsis 2.46-1 Test environment: Vista 32 bit Build command: IMAGEROOT=`pwd`/image-win32 CHOST=i586-mingw32msvc CBUILD=x86_64-pc-linux-gnu ./build Without cardmod the OpenSC package builds opensc-i586-mingw32msvc-010-setup.exe This installs on Vista, and pkcs11-tool appears to work as expected with my PIV cards. One minor change was needed to build.vars: -OPENSC_VERSION="${OPENSC_VERSION:-0.12}" +OPENSC_VERSION="${OPENSC_VERSION:-0.12.0}" But to get cardmod to build, required some additional changes to the build script (and it needs some more) but that is not the main point of this note. As instructed to do in the opensc/wiki/MiniDriver pages, I copied SCardErr.h, WinSCard.h, WinSmCrd.h from Microsoft SDK v5.0 and (renamed to lowercase) and the cardmod.h from the cnsgk.msi Version 2.0.0 published 4/27/2009 Is this the version of the cngsgk.msi to use? I see there may be a 1.3.0 version also available? With the 2.0.0 version I also need to copy the bcrypt.h file, and the compiler was having errors with the cardmod.h and bcrypt.h So I hacked the cardmod.h as it was doubling defining CARD_DATA, *PCARD_DATA and commented out the #include <bcrypt.h> and copied 4 lines from bcrypt.h to cardmod-mingw-compat.h to define BCRYPT_PKCS1_PADDING_INFO. Is there some issue with the compiler I am using that requires the changes to the cardmod.h file? Does the 1.3.0 cardmod.h have the same issues? The build/nsis scripts did not include cardmod.dll or the registry files which I have not looked at yet. -- Douglas E. Engert <deeng...@anl.gov> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel