This isn't used yet, but it will allow library users to select a
case-insensitive comparison function that matches their chosen casefold.
This will allow the comparisons to be consistent when the strings are bad,
whereas currently we kind of guess.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct ldb_utf8_fns {
void *context;
char *(*casefold)(void *context, TALLOC_CTX *mem_ctx, const char *s, size_t n);
+ int (*casecmp)(void *context, const struct ldb_val *v1, const struct ldb_val *v2);
};
/**