From 68b7986d9b9f5465fc727d454c9c38f2f1d4338e Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Wed, 20 Nov 2019 11:57:21 +0100 Subject: Expose API to calculate the MD5 hash --- src/include/ndpi_api.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') 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); -- cgit v1.2.3