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:
Pol Henarejos
2023-09-18 01:35:57 +02:00
parent 7c5f2cee4b
commit 9c90095e96

View File

@@ -111,6 +111,10 @@ void cbor_thread() {
if (apdu.sw == 0) {
DEBUG_DATA(res_APDU + 1, res_APDU_size);
}
else {
res_APDU[0] = apdu.sw;
apdu.sw = 0;
}
finished_data_size = res_APDU_size + 1;