auth-cfg: Avoid overflow when checking key strength compliance

The enumerator strictly handles pointers to pointers, so passing a
`u_int` is incorrect on 64-bit platforms.

Fixes: 918e92c4c9 ("Support multiple different public key strength types in constraints")
This commit is contained in:
Tobias Brunner
2026-07-24 08:47:39 +02:00
parent eb6fd8a8f7
commit 6971249758
+2 -1
View File
@@ -1146,8 +1146,9 @@ METHOD(auth_cfg_t, complies, bool,
char *key_type DBG_UNUSED;
e2 = create_enumerator(this);
while (e2->enumerate(e2, &t2, &strength))
while (e2->enumerate(e2, &t2, &value))
{
strength = (uintptr_t)value;
switch (t2)
{
default: