From: eric Date: Wed, 22 Sep 2021 17:09:07 +0000 (+0000) Subject: sync table_db capabilities with table_static X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=27a76c62b441076b566293aa27febbdb8f958bd4;p=openbsd sync table_db capabilities with table_static ok millert@ --- diff --git a/usr.sbin/smtpd/table_db.c b/usr.sbin/smtpd/table_db.c index b2f280da195..b4db8f7ccae 100644 --- a/usr.sbin/smtpd/table_db.c +++ b/usr.sbin/smtpd/table_db.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_db.c,v 1.24 2021/06/14 17:58:16 eric Exp $ */ +/* $OpenBSD: table_db.c,v 1.25 2021/09/22 17:09:07 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade @@ -42,7 +42,9 @@ static char *table_db_get_entry_match(void *, const char *, size_t *, struct table_backend table_backend_db = { "db", - K_ALIAS|K_CREDENTIALS|K_DOMAIN|K_NETADDR|K_USERINFO|K_SOURCE|K_MAILADDR|K_ADDRNAME|K_MAILADDRMAP, + K_ALIAS|K_CREDENTIALS|K_DOMAIN|K_NETADDR|K_USERINFO| + K_SOURCE|K_MAILADDR|K_ADDRNAME|K_MAILADDRMAP|K_RELAYHOST| + K_STRING|K_REGEX, table_db_config, NULL, NULL, @@ -59,7 +61,8 @@ static struct keycmp { } keycmp[] = { { K_DOMAIN, table_domain_match }, { K_NETADDR, table_netaddr_match }, - { K_MAILADDR, table_mailaddr_match } + { K_MAILADDR, table_mailaddr_match }, + { K_REGEX, table_regex_match }, }; struct dbhandle {