Skip to content

Commit

Permalink
allow fetching nfc enable status without an admin pin
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Dec 13, 2024
1 parent 9834767 commit ab4ebe9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions applets/admin/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ int admin_process_apdu(const CAPDU *capdu, RAPDU *rapdu) {
ret = admin_vendor_hw_sn(capdu, rapdu);
goto done;

case ADMIN_INS_NFC_ENABLE:
ret = admin_vendor_nfc_enable(capdu, rapdu);
goto done;

case ADMIN_INS_FACTORY_RESET:
ret = admin_factory_reset(capdu, rapdu);
goto done;
Expand Down Expand Up @@ -267,9 +271,6 @@ int admin_process_apdu(const CAPDU *capdu, RAPDU *rapdu) {
case ADMIN_INS_RESET_CTAP:
ret = ctap_install(1);
break;
case ADMIN_INS_NFC_ENABLE:
ret = admin_vendor_nfc_enable(capdu, rapdu);
break;
case ADMIN_INS_READ_CTAP_SM2_CONFIG:
ret = ctap_read_sm2_config(capdu, rapdu);
break;
Expand Down

0 comments on commit ab4ebe9

Please sign in to comment.