Fix select aid to new callback.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -31,7 +31,8 @@ const uint8_t man_aid[] = {
|
||||
};
|
||||
|
||||
extern void init_piv();
|
||||
int man_select(app_t *a) {
|
||||
int man_select(app_t *a, uint8_t force) {
|
||||
(void) force;
|
||||
a->process_apdu = man_process_apdu;
|
||||
a->unload = man_unload;
|
||||
sprintf((char *) res_APDU, "%d.%d.0", PIV_VERSION_MAJOR, PIV_VERSION_MINOR);
|
||||
|
||||
@@ -375,7 +375,8 @@ int heapLeft() {
|
||||
return left;
|
||||
}
|
||||
|
||||
int openpgp_select_aid(app_t *a) {
|
||||
int openpgp_select_aid(app_t *a, uint8_t force) {
|
||||
(void) force;
|
||||
a->process_apdu = openpgp_process_apdu;
|
||||
a->unload = openpgp_unload;
|
||||
init_openpgp();
|
||||
|
||||
@@ -299,7 +299,8 @@ void select_piv_aid() {
|
||||
res_APDU[res_APDU_size++] = 0x00;
|
||||
}
|
||||
|
||||
int piv_select_aid(app_t *a) {
|
||||
int piv_select_aid(app_t *a, uint8_t force) {
|
||||
(void) force;
|
||||
a->process_apdu = piv_process_apdu;
|
||||
a->unload = piv_unload;
|
||||
init_piv();
|
||||
|
||||
Reference in New Issue
Block a user