[Spice-devel] [PATCH libcacard] Do not fail, if the caller didn't pick up response from previous call
Marc-André Lureau
mlureau at redhat.com
Tue Aug 16 09:11:02 UTC 2016
Hi
----- Original Message -----
> 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
ack, and pushed
Please next time, use git send-email (with the default inline patch attachment)
Thanks
More information about the Spice-devel
mailing list