mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2025-12-19 02:48:04 +08:00
Check required parameters in excludeList.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -230,6 +230,8 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int e = 0; e < excludeList_len; e++) { //12.1
|
for (int e = 0; e < excludeList_len; e++) { //12.1
|
||||||
|
if (excludeList[e].type.present == false || excludeList[e].id.present == false)
|
||||||
|
CBOR_ERROR(CTAP2_ERR_MISSING_PARAMETER);
|
||||||
if (strcmp(excludeList[e].type.data, "public-key") != 0)
|
if (strcmp(excludeList[e].type.data, "public-key") != 0)
|
||||||
continue;
|
continue;
|
||||||
if (credential_verify(&excludeList[e].id, rp_id_hash) == true)
|
if (credential_verify(&excludeList[e].id, rp_id_hash) == true)
|
||||||
|
|||||||
Reference in New Issue
Block a user