refactor authData and extension handling to work for getNextAssertion

This commit is contained in:
Conor Patrick
2020-03-24 12:08:59 -04:00
parent 872a320abc
commit 3a70ee0ec6
2 changed files with 55 additions and 28 deletions

View File

@@ -336,7 +336,12 @@ typedef struct
struct _getAssertionState {
CTAP_authDataHeader authData;
// Room for both authData struct and extensions
struct {
CTAP_authDataHeader authData;
uint8_t extensions[80];
} __attribute__((packed)) buf;
CTAP_extensions extensions;
uint8_t clientDataHash[CLIENT_DATA_HASH_SIZE];
CTAP_credentialDescriptor creds[ALLOW_LIST_MAX_SIZE];
uint8_t lastcmd;