bug fix
This commit is contained in:
parent
fdc5a68fcd
commit
97eb6bba8a
@ -162,8 +162,8 @@ typedef struct {
|
|||||||
struct {
|
struct {
|
||||||
uint8_t _pad[CREDENTIAL_NONCE_SIZE - 4];
|
uint8_t _pad[CREDENTIAL_NONCE_SIZE - 4];
|
||||||
uint32_t value;
|
uint32_t value;
|
||||||
} metadata;
|
}__attribute__((packed)) metadata;
|
||||||
} entropy;
|
}__attribute__((packed)) entropy;
|
||||||
uint8_t rpIdHash[32];
|
uint8_t rpIdHash[32];
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
}__attribute__((packed)) CredentialId;
|
}__attribute__((packed)) CredentialId;
|
||||||
|
@ -699,7 +699,7 @@ uint8_t ctap_parse_extensions(CborValue * val, CTAP_extensions * ext)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strncmp(key, "credProtect",11) == 0) {
|
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);
|
ret = cbor_value_get_int(&map, (int*)&ext->cred_protect);
|
||||||
check_ret(ret);
|
check_ret(ret);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user