rename to be more consistent, export for teting

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22679 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-03-14 14:52:48 +00:00
parent 90c30290de
commit 00f8b507cb
4 changed files with 15 additions and 10 deletions

View File

@@ -67,16 +67,18 @@ main(int argc, char **argv)
if (expr == NULL)
errx(1, "_hx509_expr_parse failed for %d: %s", i, foo[i].str);
val = _hx509_eval_expr(context, env, expr);
val = _hx509_expr_eval(context, env, expr);
if (foo[i].val) {
if (val == 0)
errx(1, "_hx509_eval_expr not true when it should: %d: %s",
errx(1, "_hx509_expr_eval not true when it should: %d: %s",
i, foo[i].str);
} else {
if (val)
errx(1, "_hx509_eval_expr true when it should not: %d: %s",
errx(1, "_hx509_expr_eval true when it should not: %d: %s",
i, foo[i].str);
}
_hx509_expr_free(expr);
}
hx509_env_free(&env);