This commit is contained in:
Conor Patrick 2020-03-23 16:42:29 -04:00
parent fdc5a68fcd
commit 97eb6bba8a
2 changed files with 3 additions and 3 deletions

View File

@ -162,8 +162,8 @@ typedef struct {
struct {
uint8_t _pad[CREDENTIAL_NONCE_SIZE - 4];
uint32_t value;
} metadata;
} entropy;
}__attribute__((packed)) metadata;
}__attribute__((packed)) entropy;
uint8_t rpIdHash[32];
uint32_t count;
}__attribute__((packed)) CredentialId;

View File

@ -699,7 +699,7 @@ uint8_t ctap_parse_extensions(CborValue * val, CTAP_extensions * ext)
}
}
else if (strncmp(key, "credProtect",11) == 0) {
if (cbor_value_get_type(&map) != CborIntegerType) {
if (cbor_value_get_type(&map) == CborIntegerType) {
ret = cbor_value_get_int(&map, (int*)&ext->cred_protect);
check_ret(ret);
} else {