otp must be initialized when selection fido or management applets.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -398,8 +398,10 @@ void scan_all() {
|
|||||||
scan_files();
|
scan_files();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern void init_otp();
|
||||||
void init_fido() {
|
void init_fido() {
|
||||||
scan_all();
|
scan_all();
|
||||||
|
init_otp();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wait_button_pressed() {
|
bool wait_button_pressed() {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ const uint8_t man_aid[] = {
|
|||||||
0xa0, 0x00, 0x00, 0x05, 0x27, 0x47, 0x11, 0x17
|
0xa0, 0x00, 0x00, 0x05, 0x27, 0x47, 0x11, 0x17
|
||||||
};
|
};
|
||||||
extern void scan_all();
|
extern void scan_all();
|
||||||
|
extern void init_otp();
|
||||||
int man_select(app_t *a) {
|
int man_select(app_t *a) {
|
||||||
a->process_apdu = man_process_apdu;
|
a->process_apdu = man_process_apdu;
|
||||||
a->unload = man_unload;
|
a->unload = man_unload;
|
||||||
@@ -38,6 +39,7 @@ int man_select(app_t *a) {
|
|||||||
res_APDU_size = strlen((char *) res_APDU);
|
res_APDU_size = strlen((char *) res_APDU);
|
||||||
apdu.ne = res_APDU_size;
|
apdu.ne = res_APDU_size;
|
||||||
scan_all();
|
scan_all();
|
||||||
|
init_otp();
|
||||||
return CCID_OK;
|
return CCID_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user