Do not throw error if not supported but valid algorithm is provided. Just ignore it.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-09-18 01:35:13 +02:00
parent 5e0c42a9f9
commit 7c5f2cee4b
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -222,6 +222,9 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
curve = FIDO2_CURVE_P256K1;
}
}
else if (pubKeyCredParams[i].alg <= FIDO2_ALG_RS256 && pubKeyCredParams[i].alg >= FIDO2_ALG_RS512) {
// pass
}
else {
CBOR_ERROR(CTAP2_ERR_CBOR_UNEXPECTED_TYPE);
}