diff options
author | Mili Verma <mili.verma@isode.com> | 2015-07-01 11:12:56 (GMT) |
---|---|---|
committer | Mili Verma <mili.verma@isode.com> | 2015-07-02 12:06:54 (GMT) |
commit | 87137e983ed986df774a3373168a7611dff583c1 (patch) | |
tree | 6e7d3356ca499b4803e495970d6de9c0e702b48d /Swiften/LinkLocal/OutgoingLinkLocalSession.h | |
parent | d65daf31d58ad432dadb1639f05a0d7f7f367d01 (diff) | |
download | swift-87137e983ed986df774a3373168a7611dff583c1.zip swift-87137e983ed986df774a3373168a7611dff583c1.tar.bz2 |
Reestablish connection with smart card
When the card is reset in shared mode (which is the mode we use), an application
trying to access certain commands will be returned the value SCARD_W_RESET_CARD.
When this occurs SCardReconnect() must be called. This wasn't done before so
this patch fixes it.
Also provides more logging for SCard function returns.
Test-information:
Tested on Windows using NIST smart cards.
Before the fix, the Card Removed Error was seen often even after the initial
connection was established. After the fix, the reconnect attempt is done so the
error is not seen.
Also verified that if a card is removed deliberately, then the user is logged
out.
Change-Id: I94748ab9ff944a79de655646e1e06a8b61776f4b
Diffstat (limited to 'Swiften/LinkLocal/OutgoingLinkLocalSession.h')
0 files changed, 0 insertions, 0 deletions