mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2025-12-19 10:54:42 +08:00
If slot is configured with a challenge-response app, do nothing when pressed.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -181,6 +181,9 @@ int otp_button_pressed(uint8_t slot) {
|
|||||||
if (file_has_data(ef) == false) {
|
if (file_has_data(ef) == false) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (otp_config->cfg_flags & CHAL_YUBICO && otp_config->tkt_flags & CHAL_RESP) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
if (otp_config->tkt_flags & OATH_HOTP) {
|
if (otp_config->tkt_flags & OATH_HOTP) {
|
||||||
uint8_t tmp_key[KEY_SIZE + 2];
|
uint8_t tmp_key[KEY_SIZE + 2];
|
||||||
tmp_key[0] = 0x01;
|
tmp_key[0] = 0x01;
|
||||||
|
|||||||
Reference in New Issue
Block a user