Am Mittwoch, 16. August 2006 08:47 schrieb Martin Paljak: > On 15.08.2006, at 22:57, Nils Larsch wrote: > > btw: is there a reason why the pinpad stuff in reader-pcsc.c is > > disabled > > by default ? > > As it was/is somewhat experimental. Also note, that it's not disabled > by default in the code, but in the configuration file. Compilation in > reader-pcsc.c depends on a proper version of pcsc-lite or (as of > today) the windows implementation. It can not work on macosx for > example. > > I still prefer to keep the default configuration file option disabled > by default.
I would prefer to have the PINpad code enabled, because we have a Reiner cyberjack reader and this reader is working well with the ctapi-driver from the manufacturer. I never had success with the pcsc-driver for this reader (pcsc-lite 1.3.1 and Win32 PCSC). Looking at the lines 35-41 of reader-pcsc.c I now know, why: *************************** #ifdef HAVE_READER_H #include <reader.h> #ifdef HOST_TO_CCID_32 #define PINPAD_ENABLED #endif #endif *************************** There are two Pbs with this code snippet: a) It never gets activated under Win32. b) My reader.h resides in PCSC/reader.h If the pinpad code is working with current pcsc-lite releases (1.3.x) and Win32, we should change these lines to sth. like *************************** #ifdef _WIN32 # define PINPAD_ENABLED #else # ifdef HAVE_READER_H # ifdef PCSC_INCLUDES_IN_PCSC # include <PCSC/reader.h> # else # include <reader.h> # endif # ifdef HOST_TO_CCID_32 # define PINPAD_ENABLED # endif #endif *************************** or maybe simpler *************************** #ifdef _WIN32 # define PINPAD_ENABLED #else # if defined (HAVE_READER_H) && ! defined(HAVE_PCSC_OLD) # define PINPAD_ENABLED # endif #endif *************************** Wolfgang _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel