diff --git a/applets/admin/admin.c b/applets/admin/admin.c index dc436b09..e5d8f50d 100644 --- a/applets/admin/admin.c +++ b/applets/admin/admin.c @@ -48,6 +48,7 @@ __attribute__((weak)) int admin_vendor_hw_sn(const CAPDU *capdu, RAPDU *rapdu) { __attribute__((weak)) int admin_vendor_nfc_enable(const CAPDU *capdu, RAPDU *rapdu, bool pin_validated) { UNUSED(capdu); UNUSED(rapdu); + UNUSED(pin_validated); return 0; } @@ -224,7 +225,7 @@ int admin_process_apdu(const CAPDU *capdu, RAPDU *rapdu) { goto done; case ADMIN_INS_NFC_ENABLE: - ret = admin_vendor_nfc_enable(capdu, rapdu); + ret = admin_vendor_nfc_enable(capdu, rapdu, pin.is_validated); goto done; case ADMIN_INS_FACTORY_RESET: