projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updated pandora-build files to version 0.175
[m6w6/libmemcached]
/
libhashkit
/
algorithm.c
diff --git
a/libhashkit/algorithm.c
b/libhashkit/algorithm.c
index 3c486c77b6ed1e582aece524f2d08ea87e7005c7..0f0f9f01e3f4107e59233423aae010bc097e911e 100644
(file)
--- a/
libhashkit/algorithm.c
+++ b/
libhashkit/algorithm.c
@@
-45,10
+45,12
@@
uint32_t libhashkit_hsieh(const char *key, size_t key_length)
}
#endif
}
#endif
+#ifdef HAVE_MURMUR_HASH
uint32_t libhashkit_murmur(const char *key, size_t key_length)
{
return hashkit_murmur(key, key_length, NULL);
}
uint32_t libhashkit_murmur(const char *key, size_t key_length)
{
return hashkit_murmur(key, key_length, NULL);
}
+#endif
uint32_t libhashkit_jenkins(const char *key, size_t key_length)
{
uint32_t libhashkit_jenkins(const char *key, size_t key_length)
{
@@
-59,3
+61,9
@@
uint32_t libhashkit_md5(const char *key, size_t key_length)
{
return hashkit_md5(key, key_length, NULL);
}
{
return hashkit_md5(key, key_length, NULL);
}
+
+void libhashkit_md5_signature(const unsigned char *key, size_t length, unsigned char *result)
+{
+ md5_signature(key, (uint32_t)length, result);
+}
+