aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h.in
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2021-11-11 12:36:55 +0100
committerGitHub <noreply@github.com>2021-11-11 12:36:55 +0100
commit3e5491fa109fccfb28cd170d7a1dc3e55e7531e8 (patch)
tree101c56f4be9e31d58e04c4af1c2030042b72fd0e /src/include/ndpi_api.h.in
parent0f168d9150cfcc94464b84591605a2c5e17c728e (diff)
Add detection of OCSP (#1370)
This protocol is detected via HTTP Content-Type header. Until 89d548f9, nDPI had a dedicated automa (`content_automa`) to classify a HTTP flow according to this header. Since then, this automa has been useless because it is always empty. Re-enable it to match only a string seems overkilling. Remove all `content_automa` leftovers.
Diffstat (limited to 'src/include/ndpi_api.h.in')
-rw-r--r--src/include/ndpi_api.h.in22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in
index 68dd320a4..0ace029d0 100644
--- a/src/include/ndpi_api.h.in
+++ b/src/include/ndpi_api.h.in
@@ -424,7 +424,6 @@ extern "C" {
* @par string_to_match = the string to match
* @par string_to_match_len = the length of the string
* @par ret_match = completed returned match information
- * @par is_host_match = value of the second field of struct ndpi_automa
* @return the ID of the matched subprotocol;
* -1 if automa is not finalized;
* -2 if automa==NULL or string_to_match==NULL or empty string_to_match
@@ -433,8 +432,7 @@ extern "C" {
int ndpi_match_string_subprotocol(struct ndpi_detection_module_struct *ndpi_struct,
char *string_to_match,
u_int string_to_match_len,
- ndpi_protocol_match_result *ret_match,
- u_int8_t is_host_match);
+ ndpi_protocol_match_result *ret_match);
/**
* Check if the host passed match with a protocol
*
@@ -465,24 +463,6 @@ extern "C" {
struct ndpi_flow_struct *flow, u_int16_t subprotocol_id);
/**
- * Check if the string content passed match with a protocol
- *
- * @par ndpi_struct = the detection module
- * @par flow = the flow where match the host
- * @par string_to_match = the string to match
- * @par string_to_match_len = the length of the string
- * @par ret_match = completed returned match information
- * @par master_protocol_id = value of the ID associated to the master protocol detected
- * @return the ID of the matched subprotocol
- *
- */
- u_int16_t ndpi_match_content_subprotocol(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow,
- char *string_to_match,
- u_int string_to_match_len,
- ndpi_protocol_match_result *ret_match,
- u_int16_t master_protocol_id);
- /**
* Exclude protocol from search
*
* @par ndpi_struct = the detection module