From: Frank M. <no...@gi...> - 2021-11-15 09:25:32
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 45c92bbcbd95d7efae67bf3bf2576ecd3bfc1529 https://github.com/OpenSC/OpenSC/commit/45c92bbcbd95d7efae67bf3bf2576ecd3bfc1529 Author: Frank Morgner <fra...@gm...> Date: 2021-11-15 (Mon, 15 Nov 2021) Changed paths: M src/libopensc/apdu.c Log Message: ----------- fixed handling of GET RESPONSE Upon reading a few number of bytes with GET DATA, Yubikey 4 responds with these bytes *and* 61XX indicating that there is even more data available (although it has not been requested). In `sc_get_response()` we need to check early whether or not additional bytes are needed, otherwise an unnecessary GET RESPONSE will be triggered. |