aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authoremanuele-f <faranda@ntop.org>2019-11-20 11:57:21 +0100
committeremanuele-f <faranda@ntop.org>2019-11-20 11:57:21 +0100
commit68b7986d9b9f5465fc727d454c9c38f2f1d4338e (patch)
tree67887eca7684afbdefcc13191e4f2ac47e7a7035 /src/include/ndpi_api.h
parentead0325debc96b2d134a625b4fac184a979ccc5a (diff)
Expose API to calculate the MD5 hash
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 7ad734e85..669f59dda 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -855,6 +855,8 @@ extern "C" {
ndpi_protocol l7_protocol,
ndpi_serializer *serializer);
+ void ndpi_md5(const u_char *data, size_t data_len, u_char hash[16]);
+
/* ptree (trie) API */
ndpi_ptree_t* ndpi_ptree_create(void);
int ndpi_ptree_insert(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int8_t bits, uint user_data);