1305065Slidl/*-
2305065Slidl * Copyright (c) 2015 The NetBSD Foundation, Inc.
3305065Slidl * Copyright (c) 2016 The FreeBSD Foundation, Inc.
4305065Slidl * All rights reserved.
5305065Slidl *
6305065Slidl * Portions of this software were developed by Kurt Lidl
7305065Slidl * under sponsorship from the FreeBSD Foundation.
8305065Slidl *
9305065Slidl * This code is derived from software contributed to The NetBSD Foundation
10305065Slidl * by Christos Zoulas.
11305065Slidl *
12305065Slidl * Redistribution and use in source and binary forms, with or without
13305065Slidl * modification, are permitted provided that the following conditions
14305065Slidl * are met:
15305065Slidl * 1. Redistributions of source code must retain the above copyright
16305065Slidl *    notice, this list of conditions and the following disclaimer.
17305065Slidl * 2. Redistributions in binary form must reproduce the above copyright
18305065Slidl *    notice, this list of conditions and the following disclaimer in the
19305065Slidl *    documentation and/or other materials provided with the distribution.
20305065Slidl *
21305065Slidl * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
22305065Slidl * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23305065Slidl * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24305065Slidl * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
25305065Slidl * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26305065Slidl * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27305065Slidl * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28305065Slidl * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29305065Slidl * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30305065Slidl * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31305065Slidl * POSSIBILITY OF SUCH DAMAGE.
32305065Slidl */
33305065Slidl
34305065Slidl#ifndef BLACKLIST_CLIENT_H
35305065Slidl#define BLACKLIST_CLIENT_H
36305065Slidl
37318402Slidl#ifndef BLACKLIST_API_ENUM
38305065Slidlenum {
39305065Slidl	BLACKLIST_AUTH_OK = 0,
40318402Slidl	BLACKLIST_AUTH_FAIL,
41318402Slidl	BLACKLIST_ABUSIVE_BEHAVIOR,
42318402Slidl	BLACKLIST_BAD_USER
43305065Slidl};
44318402Slidl#endif
45305065Slidl
46305065Slidl#ifdef USE_BLACKLIST
47305065Slidlvoid blacklist_init(void);
48318402Slidlvoid blacklist_notify(int, const char *);
49305065Slidl
50305065Slidl#define BLACKLIST_INIT() blacklist_init()
51318402Slidl#define BLACKLIST_NOTIFY(x,msg) blacklist_notify(x,msg)
52305065Slidl
53305065Slidl#else
54305065Slidl
55305065Slidl#define BLACKLIST_INIT()
56318402Slidl#define BLACKLIST_NOTIFY(x,msg)
57305065Slidl
58305065Slidl#endif
59305065Slidl
60305065Slidl
61305065Slidl#endif /* BLACKLIST_CLIENT_H */
62