]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/globals.c
When a validate function fails from within a tool, report the offending
[openldap] / servers / slapd / globals.c
index 557d8d464de15da519d0e62def5444ae503c8bbe..6176244710e32527874e8b39d4f7c21431655533 100644 (file)
@@ -7,8 +7,11 @@
 
 #include "portable.h"
 
+#include "lber_pvt.h"
+
 #include "slap.h"
 
+
 /*
  * global variables, in general, should be declared in the file
  * primarily responsible for its management.  Configurable globals
  * sensible home.
  */
 
-const struct berval slap_empty_bv = { 0, "" };
-const struct berval slap_unknown_bv = { sizeof("unknown") - 1, "unknown" };
+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");