]> www.vanbest.org Git - sasc-ng.git/commitdiff
smartcards: fix ccid reader documentation
authorleslie <unknown>
Sat, 21 Mar 2009 12:29:00 +0000 (20:29 +0800)
committerleslie <unknown>
Sat, 21 Mar 2009 12:29:00 +0000 (20:29 +0800)
examples/cardslot.conf.example
smartcard.c

index 2ab4a9e2c952e97691b629482f861972ca5c1198..5c23fb0458f7de08f7c114f2501d9f914658d298 100644 (file)
@@ -29,9 +29,9 @@ srplus:/dev/ttyS1:6000000
 
 ; 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
@@ -39,7 +39,7 @@ srplus:/dev/ttyS1:6000000
 ; 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
index 52e9319da3122a5e3a5066e4532e242304edbb08..dd8f8d734e0619c34bdec8553f1336b5d3685b0e 100644 (file)
@@ -1093,7 +1093,7 @@ bool cSmartCardSlotCCID::DeviceOpen(const char *cfg)
 {
   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;