-/* $OpenBSD: parse.y,v 1.298 2024/02/03 15:50:00 op Exp $ */
+/* $OpenBSD: parse.y,v 1.299 2024/02/19 21:00:19 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_SOURCE)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST|T_HASH, K_SOURCE)) {
yyerror("table \"%s\" may not be used for source lookups",
t->t_name);
YYERROR;
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_STRING|K_CREDENTIALS)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST|T_HASH, K_STRING|K_CREDENTIALS)) {
yyerror("table \"%s\" may not be used for auth lookups",
t->t_name);
YYERROR;
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_MAILADDR)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST|T_HASH, K_MAILADDR)) {
yyerror("table \"%s\" may not be used for mail-from lookups",
t->t_name);
YYERROR;
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_MAILADDR)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST|T_HASH, K_MAILADDR)) {
yyerror("table \"%s\" may not be used for rcpt-to lookups",
t->t_name);
YYERROR;
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_STRING|K_CREDENTIALS)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST, K_STRING|K_CREDENTIALS)) {
yyerror("table \"%s\" may not be used for from lookups",
t->t_name);
YYERROR;
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_MAILADDR)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST|T_HASH, K_MAILADDR)) {
yyerror("table \"%s\" may not be used for from lookups",
t->t_name);
YYERROR;
YYERROR;
}
- if (!table_check_use(t, T_DYNAMIC|T_LIST, K_MAILADDR)) {
+ if (!table_check_use(t, T_DYNAMIC|T_LIST|T_HASH, K_MAILADDR)) {
yyerror("table \"%s\" may not be used for for lookups",
t->t_name);
YYERROR;