; cardslot talking to PCSCd using CCID protocol for communication
;
-; ccid:dev
+; ccid:reader
;
-; dev - serial device e.g. /dev/ttyS0
+; reader - reader name e.g. as given by pcsc_scan
;
; For using this cardslot type, you must have installed pcsd-lite and ccid
; driver package. Before compiling you should add something like this to your
; WITH_PCSC = 1
; INCLUDES += -I/usr/include/PCSC
;
-ccid:/dev/usb0
+ccid:SCR331 USB Smart Card Reader 00 00
; emulated smartcard on dummy port. For testing/debugging purpose only!
; The emulation code has to be enabled with the CARD_EMU define im smartcard.c
{
if(sscanf(cfg,"%255[^:]",devName)==1) {
LONG rv=SCardEstablishContext(SCARD_SCOPE_SYSTEM,NULL,NULL,&hContext);
- PRINTF(L_CORE_SC,"%s: establish Context: %ld:%s",devName,rv,pcsc_stringify_error(rv));
+ PRINTF(L_CORE_SC,"%s: establish context: %ld:%s",devName,rv,pcsc_stringify_error(rv));
DWORD protocol=SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1;
rv=SCardConnect(hContext,devName,SCARD_SHARE_SHARED,protocol,&hCard,&dwActiveProtocol);
dwProtocol=dwActiveProtocol;