CBOR errors are not sent through CTAPHID_ERROR command, but in CBOR response instead. Fixes #16
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -111,6 +111,10 @@ void cbor_thread() {
|
|||||||
if (apdu.sw == 0) {
|
if (apdu.sw == 0) {
|
||||||
DEBUG_DATA(res_APDU + 1, res_APDU_size);
|
DEBUG_DATA(res_APDU + 1, res_APDU_size);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
res_APDU[0] = apdu.sw;
|
||||||
|
apdu.sw = 0;
|
||||||
|
}
|
||||||
|
|
||||||
finished_data_size = res_APDU_size + 1;
|
finished_data_size = res_APDU_size + 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user