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