1 /* $NetBSD: globals.c,v 1.3 2021/08/14 16:14:58 christos Exp $ */ 2 3 /* globals.c - various global variables */ 4 /* $OpenLDAP$ */ 5 /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 6 * 7 * Copyright 1998-2021 The OpenLDAP Foundation. 8 * All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted only as authorized by the OpenLDAP 12 * Public License. 13 * 14 * A copy of this license is available in the file LICENSE in the 15 * top-level directory of the distribution or, alternatively, at 16 * <http://www.OpenLDAP.org/license.html>. 17 */ 18 19 #include <sys/cdefs.h> 20 __RCSID("$NetBSD: globals.c,v 1.3 2021/08/14 16:14:58 christos Exp $"); 21 22 #include "portable.h" 23 24 #include <ac/string.h> 25 #include "lber_pvt.h" 26 27 #include "slap.h" 28 29 30 /* 31 * Global variables, in general, should be declared in the file 32 * primarily responsible for its management. Configurable globals 33 * belong in config.c. Variables declared here have no other 34 * sensible home. 35 */ 36 37 const struct berval slap_empty_bv = BER_BVC(""); 38 const struct berval slap_unknown_bv = BER_BVC("unknown"); 39 40 /* normalized boolean values */ 41 const struct berval slap_true_bv = BER_BVC("TRUE"); 42 const struct berval slap_false_bv = BER_BVC("FALSE"); 43 44