Remove building with NOCRYPTO option
[minix3.git] / lib / libwrap / refuse.c
blob1b5408bcf95f404b8445ebfe692b037aa6272447
1 /* $NetBSD: refuse.c,v 1.5 2012/03/21 10:10:37 matt Exp $ */
3 /*
4 * refuse() reports a refused connection, and takes the consequences: in
5 * case of a datagram-oriented service, the unread datagram is taken from
6 * the input queue (or inetd would see the same datagram again and again);
7 * the program is terminated.
8 *
9 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
12 #include <sys/cdefs.h>
13 #ifndef lint
14 #if 0
15 static char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";
16 #else
17 __RCSID("$NetBSD: refuse.c,v 1.5 2012/03/21 10:10:37 matt Exp $");
18 #endif
19 #endif
21 /* System libraries. */
23 #include <stdio.h>
24 #include <syslog.h>
26 /* Local stuff. */
28 #include "tcpd.h"
30 /* refuse - refuse request */
32 void
33 refuse(struct request_info *request)
35 syslog(deny_severity, "refused connect from %s", eval_client(request));
36 clean_exit(request);
37 /* NOTREACHED */