From 6335f1687417ab571136ed320a57d1ce3e521457 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Tue, 8 Oct 2019 15:38:00 -0400 Subject: [PATCH] add u2f length arg --- fido2/ctap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fido2/ctap.c b/fido2/ctap.c index fdf666e..e9abe51 100644 --- a/fido2/ctap.c +++ b/fido2/ctap.c @@ -698,7 +698,7 @@ int ctap_authenticate_credential(struct rpId * rp, CTAP_credentialDescriptor * d crypto_sha256_init(); crypto_sha256_update(rp->id, rp->size); crypto_sha256_final(rpIdHash); - return u2f_authenticate_credential((struct u2f_key_handle *)&desc->credential.id, rpIdHash); + return u2f_authenticate_credential((struct u2f_key_handle *)&desc->credential.id, U2F_KEY_HANDLE_SIZE,rpIdHash); break; case PUB_KEY_CRED_CUSTOM: return is_extension_request(getAssertionState.customCredId, getAssertionState.customCredIdSize);