-/* $OpenBSD: table_db.c,v 1.5 2013/05/24 17:03:14 eric Exp $ */
+/* $OpenBSD: table_db.c,v 1.6 2014/04/18 06:59:15 gilles Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
int(*)(const char *, const char *));
struct table_backend table_backend_db = {
- K_ALIAS|K_CREDENTIALS|K_DOMAIN|K_NETADDR|K_USERINFO|K_SOURCE|K_ADDRNAME,
+ K_ALIAS|K_CREDENTIALS|K_DOMAIN|K_NETADDR|K_USERINFO|K_SOURCE|K_MAILADDR|K_ADDRNAME,
table_db_config,
table_db_open,
table_db_update,
int (*func)(const char *, const char *);
} keycmp[] = {
{ K_DOMAIN, table_domain_match },
- { K_NETADDR, table_netaddr_match }
+ { K_NETADDR, table_netaddr_match },
+ { K_MAILADDR, table_mailaddr_match }
};
struct dbhandle {