diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-17 10:20:40 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-17 10:20:40 +0200 |
commit | be4a0d35ac8c55a102e5a938a4b7627e0defd23d (patch) | |
tree | 8643e38e2febd3d6739facfca47c4498fb6bdfa2 | |
parent | 10adee89367cee9add993869280542418fb3d370 (diff) | |
download | samba-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
-rw-r--r-- | lib/util/util_ldb.c | 5 | ||||
-rw-r--r-- | source4/lib/ldb-samba/ldb_wrap.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/util/util_ldb.c b/lib/util/util_ldb.c index 9fd2acef16..5e50fddf1c 100644 --- a/lib/util/util_ldb.c +++ b/lib/util/util_ldb.c @@ -127,8 +127,3 @@ int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string) return ret; } -char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n) -{ - return strupper_talloc_n(mem_ctx, s, n); -} - 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, |