diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-08-07 19:02:56 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-08-07 19:02:56 +0000 |
commit | a9f66ffef11f46a61dc8f5ee706eac4ff04e6ce0 (patch) | |
tree | 4f2649b32a3e25ff08cd9cbf8392a7137a39f86b /usr.sbin/smtpd/smtpd.c | |
parent | 11355255a978e30421769371b8b003abcf8b9f48 (diff) |
wrap auth_userokay in a new function authenticate_user() and make sure
that only authenticate.c knows about bsd_auth, no functionnal change.
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 41f72e2a7ab..02bdf26240d 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.80 2009/08/06 16:46:57 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.81 2009/08/07 19:02:55 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -29,7 +29,6 @@ #include <sys/resource.h> #include <sys/mman.h> -#include <bsd_auth.h> #include <err.h> #include <errno.h> #include <event.h> @@ -574,8 +573,7 @@ parent_dispatch_smtp(int fd, short event, void *p) IMSG_SIZE_CHECK(req); - req->success = auth_userokay(req->user, NULL, - "auth-smtp", req->pass); + req->success = authenticate_user(req->user, req->pass); imsg_compose_event(iev, IMSG_PARENT_AUTHENTICATE, 0, 0, -1, req, sizeof(*req)); |