hx509: Show query expression parse errors

This commit is contained in:
Nicolas Williams
2019-11-07 21:47:54 -06:00
parent a40d4056bd
commit 4500a14f95
3 changed files with 22 additions and 6 deletions

View File

@@ -204,6 +204,7 @@ _hx509_expr_free(struct hx_expr *expr)
free(expr);
}
/* XXX Horrible, no good cause not thread-safe */
HX509_LIB_FUNCTION struct hx_expr * HX509_LIB_CALL
_hx509_expr_parse(const char *buf)
{
@@ -222,6 +223,12 @@ _hx509_expr_parse(const char *buf)
return _hx509_expr_input.expr;
}
const char *
_hx509_expr_parse_error(void)
{
return _hx509_expr_input.error;
}
void
_hx509_sel_yyerror (const char *s)
{