summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-17 10:20:40 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-17 10:20:40 +0200
commitbe4a0d35ac8c55a102e5a938a4b7627e0defd23d (patch)
tree8643e38e2febd3d6739facfca47c4498fb6bdfa2 /source4/lib
parent10adee89367cee9add993869280542418fb3d370 (diff)
downloadsamba-be4a0d35ac8c55a102e5a938a4b7627e0defd23d.tar.gz
samba-be4a0d35ac8c55a102e5a938a4b7627e0defd23d.tar.bz2
samba-be4a0d35ac8c55a102e5a938a4b7627e0defd23d.zip
s4:"wrap_casefold" - move it to "ldb_wrap.c" since it's only used there
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb-samba/ldb_wrap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/ldb-samba/ldb_wrap.c b/source4/lib/ldb-samba/ldb_wrap.c
index 299dbf49e7..5d870550a8 100644
--- a/source4/lib/ldb-samba/ldb_wrap.c
+++ b/source4/lib/ldb-samba/ldb_wrap.c
@@ -103,6 +103,15 @@ static int ldb_wrap_destructor(struct ldb_wrap *w)
return 0;
}
+/*
+ * The casefolder for s4's LDB databases - Unicode-safe
+ */
+char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n)
+{
+ return strupper_talloc_n(mem_ctx, s, n);
+}
+
+
struct ldb_context *samba_ldb_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct loadparm_context *lp_ctx,