From daae1cc9b1ae6b7c6b4187003fabb2a6ffab44f0 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 1 Jan 2020 12:59:19 +0100 Subject: Reworked TLS dissection --- src/include/ndpi_api.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/include/ndpi_api.h') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 669f59dda..c1d8845dc 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -506,6 +506,21 @@ extern "C" { u_int8_t ndpi_is_subprotocol_informative(struct ndpi_detection_module_struct *ndpi_mod, u_int16_t protoId); + /** + * Set hostname-based protocol + * + * @par ndpi_mod = the detection module + * @par flow = the flow to which this communication belongs to + * @par master_protocol = the master protocol for this flow + * @par name = the host name + * @par name_len = length of the host name + * + */ + int ndpi_match_hostname_protocol(struct ndpi_detection_module_struct *ndpi_mod, + struct ndpi_flow_struct *flow, + u_int16_t master_protocol, + char *name, u_int name_len); + /** * Get protocol category as string * -- cgit v1.2.3