mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-11 01:38:26 +02:00
New format for applet selection.
AID comparison is performed by the kernel. If it is the same as previously loaded, do nothing. If not found, do nothing. If found and is different, unload old and load the new one. All other applets shall be migrated to new format. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -28,11 +28,11 @@
|
||||
typedef struct app {
|
||||
const uint8_t *aid;
|
||||
int (*process_apdu)();
|
||||
struct app * (*select_aid)(struct app *, const uint8_t *, uint8_t);
|
||||
int (*select_aid)(struct app *);
|
||||
int (*unload)();
|
||||
} app_t;
|
||||
|
||||
extern int register_app(app_t *(*)(app_t *, const uint8_t *, uint8_t));
|
||||
extern int register_app(int (*)(app_t *), const uint8_t *);
|
||||
|
||||
typedef struct cmd {
|
||||
uint8_t ins;
|
||||
|
||||
Reference in New Issue
Block a user