Stop checking once a key size constraint is not fulfilled

This commit is contained in:
Martin Willi
2012-03-20 17:31:23 +01:00
parent ac3bc42e63
commit fd2a491b31
+3
View File
@@ -537,6 +537,7 @@ METHOD(auth_cfg_t, complies, bool,
"public keys, but %d bit key used",
(uintptr_t)value, strength);
}
break;
}
}
else if (t2 == AUTH_RULE_RSA_STRENGTH)
@@ -547,6 +548,7 @@ METHOD(auth_cfg_t, complies, bool,
DBG1(DBG_CFG, "constraint requires %d bit ECDSA, "
"but RSA used", (uintptr_t)value);
}
break;
}
else if (t2 == AUTH_RULE_ECDSA_STRENGTH)
{
@@ -556,6 +558,7 @@ METHOD(auth_cfg_t, complies, bool,
DBG1(DBG_CFG, "constraint requires %d bit RSA, "
"but ECDSA used", (uintptr_t)value);
}
break;
}
}
e2->destroy(e2);