summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-11 09:56:38 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-11 09:56:38 +0000
commit714518e550f3c6ee36fa6e3e2447b943898a2ac5 (patch)
treebf01343fb92861e3d2ec9a55e9550a7f08dd1493 /source3/smbd/mangle.c
parent60fd2ec8cc37d5af323235bf750d41dba52c0c92 (diff)
downloadsamba-714518e550f3c6ee36fa6e3e2447b943898a2ac5.tar.gz
samba-714518e550f3c6ee36fa6e3e2447b943898a2ac5.tar.bz2
samba-714518e550f3c6ee36fa6e3e2447b943898a2ac5.zip
this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and the code is written to be very fast, correctly handling multibyte while not doing any actual multi-byte conversions in the vast majority of cases you can select this scheme using "mangling method = hash2", although I may make it the default if it works out well. (This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)
Diffstat (limited to 'source3/smbd/mangle.c')
-rw-r--r--source3/smbd/mangle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index 9d0641d5c8..6bf60f0543 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -28,6 +28,7 @@ static struct {
struct mangle_fns *(*init_fn)(void);
} mangle_backends[] = {
{ "hash", mangle_hash_init },
+ { "hash2", mangle_hash2_init },
{ NULL, NULL }
};