From: leslie Date: Sat, 21 Mar 2009 12:29:00 +0000 (+0800) Subject: smartcards: fix ccid reader documentation X-Git-Tag: 0.9.2~53 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=f55fb0b4c50d1b6e8dc8376aee79832e02576226;p=sasc-ng.git smartcards: fix ccid reader documentation --- diff --git a/examples/cardslot.conf.example b/examples/cardslot.conf.example index 2ab4a9e..5c23fb0 100644 --- a/examples/cardslot.conf.example +++ b/examples/cardslot.conf.example @@ -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 diff --git a/smartcard.c b/smartcard.c index 52e9319..dd8f8d7 100644 --- a/smartcard.c +++ b/smartcard.c @@ -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;