source3: Replace ccan hash calls with tdb_jenkins_hash
[obnox/samba/samba-obnox.git] / source3 / smbd / smbXsrv_open.c
index 03b0123bba9120c212a0ae90946669cf1d38346f..2440ecb26410b9420333ce181491cbc05ed1e08d 100644 (file)
@@ -29,7 +29,6 @@
 #include "messages.h"
 #include "lib/util/util_tdb.h"
 #include "librpc/gen_ndr/ndr_smbXsrv.h"
-#include <ccan/hash/hash.h>
 #include "serverid.h"
 
 struct smbXsrv_open_table {
@@ -889,12 +888,14 @@ uint32_t smbXsrv_open_hash(struct smbXsrv_open *_open)
 {
        uint8_t buf[8+8+8];
        uint32_t ret;
+       TDB_DATA key;
 
        SBVAL(buf,  0, _open->global->open_persistent_id);
        SBVAL(buf,  8, _open->global->open_volatile_id);
        SBVAL(buf, 16, _open->global->open_time);
 
-       ret = hash(buf, sizeof(buf), 0);
+       key = (TDB_DATA) { .dptr = buf, .dsize = sizeof(buf) };
+       ret = tdb_jenkins_hash(&key);
 
        if (ret == 0) {
                ret = 1;