summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2010-04-21 19:53:17 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2010-04-21 19:53:17 +0000
commit478d2f807269d4a1dc2066ed302f9716adb8b3f9 (patch)
tree7fc9ae985dde1a2a8dd7c607939ca2476138a570 /usr.sbin/smtpd/smtpd.h
parentfd61b69b0ae66552b57201d46c1bfaa0d75cb766 (diff)
map_lookup() takes an additionnal parameter of type enum map_kind which
will be used to select the appropriate map parser. make sure every call to map_lookup() is updated. map_lookup() currently ignores the value.
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index eb4aed746fb..c4ba75f3846 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.176 2010/04/21 19:45:07 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.177 2010/04/21 19:53:16 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -252,7 +252,8 @@ enum map_src {
enum map_kind {
K_NONE,
K_ALIASES,
- K_CREDENTIALS
+ K_VIRTUAL,
+ K_SECRETS
};
enum mapel_type {
@@ -937,7 +938,7 @@ void show_queue(char *, int);
u_int16_t queue_hash(char *);
/* map.c */
-char *map_lookup(struct smtpd *, objid_t, char *);
+char *map_lookup(struct smtpd *, objid_t, char *, enum map_kind);
/* mda.c */
pid_t mda(struct smtpd *);