From bac576f3a0a761caf41f066a421a6944023d205c Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 20 Aug 2019 09:36:39 +0200 Subject: [PATCH] Make the state structure backward-compatible. Add version. --- fido2/storage.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fido2/storage.h b/fido2/storage.h index 6f62dd0..6432229 100644 --- a/fido2/storage.h +++ b/fido2/storage.h @@ -28,12 +28,14 @@ typedef struct uint8_t is_pin_set; uint8_t PIN_CODE_HASH[32]; uint8_t PIN_SALT[PIN_SALT_LEN]; + int _reserved_pin_code_length; int8_t remaining_tries; uint16_t rk_stored; uint16_t key_lens[MAX_KEYS]; uint8_t key_space[KEY_SPACE_BYTES]; + uint8_t data_version; } AuthenticatorState;