From b527294153be3b79563c82c66102adc0004736c0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 19:54:12 +0200 Subject: Adding upstream version 2.6.7+dfsg. Signed-off-by: Daniel Baumann --- servers/slapd/globals.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 servers/slapd/globals.c (limited to 'servers/slapd/globals.c') diff --git a/servers/slapd/globals.c b/servers/slapd/globals.c new file mode 100644 index 0000000..c785165 --- /dev/null +++ b/servers/slapd/globals.c @@ -0,0 +1,38 @@ +/* globals.c - various global variables */ +/* $OpenLDAP$ */ +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2022 The OpenLDAP Foundation. + * 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 + * . + */ + +#include "portable.h" + +#include +#include "lber_pvt.h" + +#include "slap.h" + + +/* + * Global variables, in general, should be declared in the file + * primarily responsible for its management. Configurable globals + * belong in config.c. Variables declared here have no other + * sensible home. + */ + +const struct berval slap_empty_bv = BER_BVC(""); +const struct berval slap_unknown_bv = BER_BVC("unknown"); + +/* normalized boolean values */ +const struct berval slap_true_bv = BER_BVC("TRUE"); +const struct berval slap_false_bv = BER_BVC("FALSE"); + -- cgit v1.2.3