2003-02-28 19:14:32 -05:00
|
|
|
/* globals.c - various global variables */
|
|
|
|
|
/* $OpenLDAP$ */
|
2003-11-26 20:17:14 -05:00
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
|
*
|
2010-04-13 18:17:29 -04:00
|
|
|
* Copyright 1998-2010 The OpenLDAP Foundation.
|
2003-11-26 20:17:14 -05:00
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
|
* Public License.
|
|
|
|
|
*
|
|
|
|
|
* A copy of this license is available in the file LICENSE in the
|
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
|
|
|
|
*/
|
2003-02-28 19:14:32 -05:00
|
|
|
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
|
2004-04-27 17:40:54 -04:00
|
|
|
#include <ac/string.h>
|
2003-03-12 20:05:40 -05:00
|
|
|
#include "lber_pvt.h"
|
|
|
|
|
|
2003-02-28 19:14:32 -05:00
|
|
|
#include "slap.h"
|
|
|
|
|
|
2003-03-12 20:05:40 -05:00
|
|
|
|
2003-02-28 19:14:32 -05:00
|
|
|
/*
|
2003-11-29 20:09:12 -05:00
|
|
|
* Global variables, in general, should be declared in the file
|
2003-02-28 19:14:32 -05:00
|
|
|
* primarily responsible for its management. Configurable globals
|
2003-11-29 20:09:12 -05:00
|
|
|
* belong in config.c. Variables declared here have no other
|
2003-02-28 19:14:32 -05:00
|
|
|
* sensible home.
|
|
|
|
|
*/
|
|
|
|
|
|
2003-03-12 20:05:40 -05:00
|
|
|
const struct berval slap_empty_bv = BER_BVC("");
|
|
|
|
|
const struct berval slap_unknown_bv = BER_BVC("unknown");
|
2003-02-28 19:14:32 -05:00
|
|
|
|
2003-04-16 15:49:00 -04:00
|
|
|
/* normalized boolean values */
|
|
|
|
|
const struct berval slap_true_bv = BER_BVC("TRUE");
|
|
|
|
|
const struct berval slap_false_bv = BER_BVC("FALSE");
|
2003-11-09 21:44:25 -05:00
|
|
|
|