Add card_reader_lock_obtained function to sc_card_operations During sc_lock, if card->reader->ops->lock is called, card->ops->card_reader_lock_obtained will be called. If PCSC is being used as the reader driver, this occures just after pcsc_lock has done a SCardBeginTransaction and our process has exclusive control over the card. The card driver can then determine if the state of the card has changed, and take action to get the card into an acceptable state. If card->reader->ops->lock returns SC_ERROR_CARD_RESET, indicating some other process has interefered with the state of the card. was_reset=1 is passed to card->ops->card_reader_lock_obtained. Some examples of actions that could be done by the card driver is to select the AID and reset logged_in. Currently the card driver is not notified. So no default card_reader_lock_obtained is defined in iso7816.c |
||
---|---|---|
MacOSX | ||
doc | ||
etc | ||
m4 | ||
packaging/debian.templates | ||
solaris | ||
src | ||
win32 | ||
.gitignore | ||
.travis.yml | ||
CONTRIBUTING.md | ||
COPYING | ||
ISSUE_TEMPLATE.md | ||
Makefile.am | ||
Makefile.mak | ||
NEWS | ||
README | ||
README.md | ||
appveyor.yml | ||
bootstrap | ||
bootstrap.ci | ||
configure.ac | ||
version.m4 |
README.md
OpenSC documentation
Wiki is available online
Please take a look at the documentation before trying to use OpenSC.