[SmartcardServices-Changes] [118] trunk/Tokend/BELPIC/BELPICToken.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 12 04:27:26 PST 2010
Revision: 118
http://trac.macosforge.org/projects/smartcardservices/changeset/118
Author: ludovic.rousseau at gmail.com
Date: 2010-03-12 04:27:23 -0800 (Fri, 12 Mar 2010)
Log Message:
-----------
BELPICToken::probe(): add the missing share parameter. The PC/SC
connection was using SCARD_SHARE_EXCLUSIVE (wrongly spelled
SCARD_PROTOCOL_T0) and the card was locked.
Thanks to Koen De Causmaecker for the patch
http://lists.apple.com/archives/apple-cdsa/2009/Oct/msg00025.html
This should fix rdar://7343359
Modified Paths:
--------------
trunk/Tokend/BELPIC/BELPICToken.cpp
Modified: trunk/Tokend/BELPIC/BELPICToken.cpp
===================================================================
--- trunk/Tokend/BELPIC/BELPICToken.cpp 2010-03-01 09:32:34 UTC (rev 117)
+++ trunk/Tokend/BELPIC/BELPICToken.cpp 2010-03-12 12:27:23 UTC (rev 118)
@@ -490,7 +490,7 @@
// uint32 score = Tokend::ISO7816Token::probe(flags, tokenUid);
//SCARD_PROTOCOL_T0
const SCARD_READERSTATE &readerState = *(*startupReaderInfo)();
- connect(mSession, readerState.szReader, SCARD_PROTOCOL_T0);
+ connect(mSession, readerState.szReader, SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0);
uint32 score = 0;
bool doDisconnect = false; /*!(flags & kSecTokendProbeKeepToken); */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/smartcardservices-changes/attachments/20100312/2d3c3401/attachment.html>
More information about the SmartcardServices-Changes
mailing list