commit b8dd39ded0fd62d38960a0ed08481838d58af74f
parent 5338904824638124d78acf1efae0b046d3d6735b
Author: Denis Kenzior <denkenz@gmail.com>
Date: Thu, 4 Apr 2019 13:37:01 -0500
sae: Fix argument type passed via va_args
The function expects a size_t argument, but on some ARM systems this was
getting confused and failing.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sae.c b/src/sae.c
@@ -91,7 +91,7 @@ static bool sae_pwd_seed(const uint8_t *addr1, const uint8_t *addr2,
}
return hkdf_extract(L_CHECKSUM_SHA256, key, 12, 2, out, base, base_len,
- &counter, 1);
+ &counter, (size_t) 1);
}
static struct l_ecc_scalar *sae_pwd_value(const struct l_ecc_curve *curve,