From 775faaffd6e783b7c317cbeb5d99f86f0c781a67 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Mon, 13 Sep 2021 14:46:44 +0300 Subject: [PATCH] check cov --- client/src/cmdhffido.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhffido.c b/client/src/cmdhffido.c index 64ab28687..5af098c6a 100644 --- a/client/src/cmdhffido.c +++ b/client/src/cmdhffido.c @@ -343,7 +343,7 @@ static int CmdHFFidoRegister(const char *cmd) { &data[0], 32, // challenge parameter &buf[67], keyHandleLen, // keyHandle &buf[1], 65, // user public key - NULL, 0); + (uint8_t *)NULL, 0); (void)res; //PrintAndLogEx(INFO, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen)); res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, public_key, xbuf, xbuflen, &buf[hashp], len - hashp, true); @@ -616,7 +616,7 @@ static int CmdHFFidoAuthenticate(const char *cmd) { &buf[0], 1, // user presence &buf[1], 4, // counter data, 32, // challenge parameter - NULL, 0); + (uint8_t *)NULL, 0); (void)res; //PrintAndLogEx(INFO, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen)); res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, public_key, xbuf, xbuflen, &buf[5], len - 5, true);