Skip to content

Commit

Permalink
fix build errors caused by ctap_hid_init
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Jul 7, 2024
1 parent 94f3e83 commit 2ec96f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions virt-card/fido-hid-over-udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ static void udp_send(int fd, uint8_t *buf, int size) {
}

static int current_fd;
static uint8_t udp_send_current_fd(uint8_t *report, uint16_t len) {
static void udp_send_current_fd(uint8_t *report, uint16_t len) {
// printf("udp_send_current_fd %hu\n", len);
udp_send(current_fd, report, len);
return 0;
}

static void emulate_reboot(void) {
Expand Down
3 changes: 1 addition & 2 deletions virt-card/ifdhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ const static UCHAR ATR[] = {0x3B, 0xF7, 0x11, 0x00, 0x00, 0x81, 0x31, 0xFE, 0x65
0x43, 0x61, 0x6E, 0x6F, 0x6B, 0x65, 0x79, 0x99};
static int applet_init = 0;

static uint8_t send_hid_report(USBD_HandleTypeDef *pdev, uint8_t *report, uint16_t len)
static void send_hid_report(uint8_t *report, uint16_t len)
{
return 0;
}

RESPONSECODE IFDHCreateChannel ( DWORD Lun, DWORD Channel )
Expand Down

0 comments on commit 2ec96f6

Please sign in to comment.