Skip to content

Commit

Permalink
drop meta
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Jan 16, 2024
1 parent 6a415fb commit 205c3b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
55 changes: 0 additions & 55 deletions applets/meta/meta.c

This file was deleted.

9 changes: 1 addition & 8 deletions src/apdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <common.h>
#include <ctap.h>
#include <device.h>
#include <meta.h>
#include <ndef.h>
#include <oath.h>
#include <openpgp.h>
Expand All @@ -19,7 +18,6 @@ enum APPLET {
APPLET_ADMIN,
APPLET_OPENPGP,
APPLET_NDEF,
APPLET_META,
APPLET_ENUM_END,
} current_applet;

Expand All @@ -35,11 +33,10 @@ static const uint8_t ADMIN_AID[] = {0xF0, 0x00, 0x00, 0x00, 0x00};
static const uint8_t OPENPGP_AID[] = {0xD2, 0x76, 0x00, 0x01, 0x24, 0x01};
static const uint8_t FIDO_AID[] = {0xA0, 0x00, 0x00, 0x06, 0x47, 0x2F, 0x00, 0x01};
static const uint8_t NDEF_AID[] = {0xD2, 0x76, 0x00, 0x00, 0x85, 0x01, 0x01};
static const uint8_t META_AID[] = {0xA0, 0x00, 0x00, 0x05, 0x27, 0x47, 0x11, 0x17};

static const uint8_t *const AID[] = {
[APPLET_NULL] = NULL, [APPLET_PIV] = PIV_AID, [APPLET_FIDO] = FIDO_AID, [APPLET_OATH] = OATH_AID,
[APPLET_ADMIN] = ADMIN_AID, [APPLET_OPENPGP] = OPENPGP_AID, [APPLET_NDEF] = NDEF_AID, [APPLET_META] = META_AID,
[APPLET_ADMIN] = ADMIN_AID, [APPLET_OPENPGP] = OPENPGP_AID, [APPLET_NDEF] = NDEF_AID,
};

static const uint8_t AID_Size[] = {
Expand All @@ -50,7 +47,6 @@ static const uint8_t AID_Size[] = {
[APPLET_ADMIN] = sizeof(ADMIN_AID),
[APPLET_OPENPGP] = sizeof(OPENPGP_AID),
[APPLET_NDEF] = sizeof(NDEF_AID),
[APPLET_META] = sizeof(META_AID),
};

static volatile uint32_t buffer_owner = BUFFER_OWNER_NONE;
Expand Down Expand Up @@ -246,9 +242,6 @@ void process_apdu(CAPDU *capdu, RAPDU *rapdu) {
case APPLET_NDEF:
ndef_process_apdu(capdu, rapdu);
break;
case APPLET_META:
meta_process_apdu(capdu, rapdu);
break;
default:
LL = 0;
SW = SW_FILE_NOT_FOUND;
Expand Down

0 comments on commit 205c3b6

Please sign in to comment.