getinfo cmd filled in

This commit is contained in:
Conor Patrick
2018-05-03 21:27:29 -04:00
parent 3080007b12
commit ed6308eaa1
3 changed files with 70 additions and 28 deletions

4
ctap.h
View File

@@ -11,6 +11,8 @@
#define CTAP_VENDOR_FIRST 0x40
#define CTAP_VENDOR_LAST 0xBF
#define CTAP_AAGUID ((uint8_t*)"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff")
typedef struct
{
uint8_t * data;
@@ -18,7 +20,7 @@ typedef struct
} CTAP_RESPONSE;
void ctap_handle_packet(uint8_t * pkt_raw, int length, CTAP_RESPONSE * resp);
uint8_t ctap_handle_packet(uint8_t * pkt_raw, int length, CTAP_RESPONSE * resp);
// Must be implemented by application
// data is HID_MESSAGE_SIZE long in bytes