diff --git a/fido2/ctaphid.c b/fido2/ctaphid.c index 3d1420f..e815dd6 100644 --- a/fido2/ctaphid.c +++ b/fido2/ctaphid.c @@ -635,6 +635,9 @@ uint8_t ctaphid_handle_packet(uint8_t * pkt_raw) status = ctap_request(ctap_buffer, len, &ctap_resp); wb.bcnt = (ctap_resp.length+1); + wb.cid = cid; + wb.cmd = cmd; + timestamp(); @@ -665,6 +668,9 @@ uint8_t ctaphid_handle_packet(uint8_t * pkt_raw) u2f_request((struct u2f_request_apdu*)ctap_buffer, &ctap_resp); wb.bcnt = (ctap_resp.length); + wb.cid = cid; + wb.cmd = cmd; + ctaphid_write(&wb, ctap_resp.data, ctap_resp.length); ctaphid_write(&wb, NULL, 0);