From 7c5f2cee4bceb02a3bd3a159b4b9101bda0a64d7 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 18 Sep 2023 01:35:13 +0200 Subject: [PATCH] Do not throw error if not supported but valid algorithm is provided. Just ignore it. Signed-off-by: Pol Henarejos --- src/fido/cbor_make_credential.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fido/cbor_make_credential.c b/src/fido/cbor_make_credential.c index cf836d7..832ee35 100644 --- a/src/fido/cbor_make_credential.c +++ b/src/fido/cbor_make_credential.c @@ -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); }