GetVersion works. not so clean. needs additional memory....
This commit is contained in:
parent
15de8dc4a6
commit
cde6bc107a
@ -342,7 +342,10 @@ void nfc_process_iblock(uint8_t * buf, int len)
|
|||||||
|
|
||||||
if (status == CTAP1_ERR_SUCCESS)
|
if (status == CTAP1_ERR_SUCCESS)
|
||||||
{
|
{
|
||||||
nfc_write_response_chaining(buf[0], ctap_resp.data, ctap_resp.length, SW_SUCCESS);
|
uint8_t ctapdata[1024] = {0};
|
||||||
|
ctapdata[0] = status;
|
||||||
|
memcpy(&ctapdata[1], ctap_resp.data, ctap_resp.length);
|
||||||
|
nfc_write_response_chaining(buf[0], ctapdata, ctap_resp.length + 1, SW_SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
nfc_write_response(buf[0], SW_INTERNAL_EXCEPTION | status);
|
nfc_write_response(buf[0], SW_INTERNAL_EXCEPTION | status);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user