diff --git a/src/fido/otp.c b/src/fido/otp.c index 08a0d09..e217612 100644 --- a/src/fido/otp.c +++ b/src/fido/otp.c @@ -181,6 +181,9 @@ int otp_button_pressed(uint8_t slot) { if (file_has_data(ef) == false) { return 1; } + if (otp_config->cfg_flags & CHAL_YUBICO && otp_config->tkt_flags & CHAL_RESP) { + return 2; + } if (otp_config->tkt_flags & OATH_HOTP) { uint8_t tmp_key[KEY_SIZE + 2]; tmp_key[0] = 0x01;