13656f229SKurt Lidl /*- 23656f229SKurt Lidl * Copyright (c) 2016 The FreeBSD Foundation 33656f229SKurt Lidl * All rights reserved. 43656f229SKurt Lidl * 53656f229SKurt Lidl * This software was developed by Kurt Lidl under sponsorship from the 63656f229SKurt Lidl * FreeBSD Foundation. 73656f229SKurt Lidl * 83656f229SKurt Lidl * Redistribution and use in source and binary forms, with or without 93656f229SKurt Lidl * modification, are permitted provided that the following conditions 103656f229SKurt Lidl * are met: 113656f229SKurt Lidl * 1. Redistributions of source code must retain the above copyright 123656f229SKurt Lidl * notice, this list of conditions and the following disclaimer. 133656f229SKurt Lidl * 2. Redistributions in binary form must reproduce the above copyright 143656f229SKurt Lidl * notice, this list of conditions and the following disclaimer in the 153656f229SKurt Lidl * documentation and/or other materials provided with the distribution. 163656f229SKurt Lidl * 173656f229SKurt Lidl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 183656f229SKurt Lidl * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 193656f229SKurt Lidl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 203656f229SKurt Lidl * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 213656f229SKurt Lidl * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 223656f229SKurt Lidl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 233656f229SKurt Lidl * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 243656f229SKurt Lidl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 253656f229SKurt Lidl * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 263656f229SKurt Lidl * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 273656f229SKurt Lidl * SUCH DAMAGE. */ 283656f229SKurt Lidl 293656f229SKurt Lidl /* $FreeBSD$ */ 303656f229SKurt Lidl 31e07d11b6SKurt Lidl #ifndef BLACKLIST_CLIENT_H 32e07d11b6SKurt Lidl #define BLACKLIST_CLIENT_H 33e07d11b6SKurt Lidl 34*be4b7933SKurt Lidl #ifndef BLACKLIST_API_ENUM 35e07d11b6SKurt Lidl enum { 36e07d11b6SKurt Lidl BLACKLIST_AUTH_OK = 0, 37e07d11b6SKurt Lidl BLACKLIST_AUTH_FAIL 38e07d11b6SKurt Lidl }; 39*be4b7933SKurt Lidl #endif 40e07d11b6SKurt Lidl 41e07d11b6SKurt Lidl #ifdef USE_BLACKLIST 423656f229SKurt Lidl void blacklist_init(void); 43*be4b7933SKurt Lidl void blacklist_notify(int, int, const char *); 44e07d11b6SKurt Lidl 45e07d11b6SKurt Lidl #define BLACKLIST_INIT() blacklist_init() 46e07d11b6SKurt Lidl #define BLACKLIST_NOTIFY(x, y, z) blacklist_notify(x, y, z) 47e07d11b6SKurt Lidl 48e07d11b6SKurt Lidl #else 49e07d11b6SKurt Lidl 50e07d11b6SKurt Lidl #define BLACKLIST_INIT() 51e07d11b6SKurt Lidl #define BLACKLIST_NOTIFY(x, y, z) 52e07d11b6SKurt Lidl 53e07d11b6SKurt Lidl #endif 54e07d11b6SKurt Lidl 55e07d11b6SKurt Lidl #endif /* BLACKLIST_CLIENT_H */ 56