2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 1994-1996, 1998-1999, 2004
5 * Todd C. Miller <Todd.Miller@sudo.ws>
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 #ifndef SUDOERS_INSULTS_H
21 #define SUDOERS_INSULTS_H
23 #if defined(HAL_INSULTS) || defined(GOONS_INSULTS) || defined(CLASSIC_INSULTS) || defined(CSOPS_INSULTS) || defined(PYTHON_INSULTS)
25 #include "sudo_rand.h"
28 * Use one or more set of insults as determined by configure
34 # include "ins_2001.h"
38 # include "ins_goons.h"
41 # ifdef CLASSIC_INSULTS
42 # include "ins_classic.h"
46 # include "ins_csops.h"
49 # ifdef PYTHON_INSULTS
50 # include "ins_python.h"
58 * How may I insult you? Let me count the ways...
60 #define NOFINSULTS (nitems(insults) - 1)
63 * return a pseudo-random insult.
65 #define INSULT (insults[arc4random_uniform(NOFINSULTS)])
67 #endif /* HAL_INSULTS || GOONS_INSULTS || CLASSIC_INSULTS || CSOPS_INSULTS || PYTHON_INSULTS */
69 #endif /* SUDOERS_INSULTS_H */