[Spice-devel] [PATCH libcacard] Do not fail, if the caller didn't pick up response from previous call
Jakub Jelen
jjelen at redhat.com
Fri Aug 12 11:31:02 UTC 2016
Hello all,
cross-posting the originally opened pull request on github [1] (with
attached patch):
During our testing of a new CAC driver in OpenSC, with this library, we
encountered a problem with |libcacard| failing and the driver returning
only a fraction of the requested objects.
The problem is that the Emulator wants to return the data (properly
signalized by 61 (RESPONSE BYTES) in SW1), but this is ignored for some
reason in some of our calls from OpenSC. The Emulator should not fail
hard for the next independent request, rather silently drop the buffer
and serve the ongoing APDU request (I would left for consideration to
somehow log such problem).
Patch was successfully tested on Fedora 24 host and solves our problem
(though we worked around the problem already in the driver too).
[1] https://github.com/SPICE/libcacard/pull/1
Kind regards,
Jakub Jelen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-fail-if-the-caller-didn-t-pick-up-response-fr.patch
Type: text/x-patch
Size: 1077 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160812/23555e3a/attachment.bin>
More information about the Spice-devel
mailing list