Skip to content

Commit

Permalink
fix tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Oct 18, 2023
1 parent 0327e26 commit 87d45fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions virt-card/ifdhandler.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0

#include "ccid.h"
#include "ctaphid.h"
#include "fabrication.h"
#include <ifdhandler.h>
#include <reader.h>
Expand All @@ -14,10 +15,16 @@ 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)
{
return 0;
}

RESPONSECODE IFDHCreateChannel ( DWORD Lun, DWORD Channel )
{
printf("IFDHCreateChannel %ld %ld\n", Lun, Channel);
if(!applet_init) {
CTAPHID_Init(send_hid_report);
CCID_Init();
card_fabrication_procedure("/tmp/lfs-root");
applet_init = 1;
Expand Down

0 comments on commit 87d45fc

Please sign in to comment.