1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

ldb: add a utf-8 comparison fold callback

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>
This commit is contained in:
Douglas Bagnall 2024-05-09 16:52:53 +12:00 committed by Andrew Bartlett
parent f9fbc7a506
commit 278a3c7f7c

View File

@ -241,6 +241,7 @@ struct ldb_debug_ops {
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);
};
/**