|
|
@ -362,12 +362,11 @@ namespace pcsc { |
|
|
|
/*! @note Micro$oft QinSCard does not know cancel, therefore
|
|
|
|
/*! @note Micro$oft QinSCard does not know cancel, therefore
|
|
|
|
on Windoze cancel is replaced by commit. */ |
|
|
|
on Windoze cancel is replaced by commit. */ |
|
|
|
void cancelTransaction() { |
|
|
|
void cancelTransaction() { |
|
|
|
#ifdef WIN32 |
|
|
|
#ifndef WIN32 |
|
|
|
check(SCardEndTransaction(_id, SCARD_LEAVE_CARD), |
|
|
|
|
|
|
|
"smartcard end transaction"); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
check(SCardCancelTransaction(_id), "smartcard cancel transaction"); |
|
|
|
check(SCardCancelTransaction(_id), "smartcard cancel transaction"); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
check(SCardEndTransaction(_id, SCARD_LEAVE_CARD), |
|
|
|
|
|
|
|
"smartcard end transaction"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*! @throw not_implemented if _protocol is unknown. */ |
|
|
|
/*! @throw not_implemented if _protocol is unknown. */ |
|
|
|