Skip to content

Commit

Permalink
Removing SHORT_TICKET limitation.
Browse files Browse the repository at this point in the history
It is not used to return the half of ticket, but to combine with static to produce hex scancodes.

Fixes #29.

Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Nov 21, 2023
1 parent 1d9107d commit e54df52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fido/otp.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ int otp_button_pressed(uint8_t slot) {
}
else if (otp_config->cfg_flags & SHORT_TICKET || otp_config->cfg_flags & STATIC_TICKET) {
uint8_t fixed_size = FIXED_SIZE + UID_SIZE + KEY_SIZE;
if (otp_config->cfg_flags & SHORT_TICKET) {
fixed_size /= 2;
if (otp_config->cfg_flags & SHORT_TICKET) { // Not clear which is the purpose of SHORT_TICKET
//fixed_size /= 2;
}
add_keyboard_buffer(otp_config->fixed_data, fixed_size, false);
if (otp_config->tkt_flags & APPEND_CR) {
Expand Down

0 comments on commit e54df52

Please sign in to comment.