diff options
author | Luca Deri <deri@ntop.org> | 2019-09-29 21:46:41 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-09-29 21:46:41 +0200 |
commit | f2a5bbef173ee7f5447871f26024b9639735c096 (patch) | |
tree | 1607ba80cf3b27968e0f710a4552a3f959ea58b2 /src/lib/protocols/tls.c | |
parent | 016d568c2b073339e97bdf44e00a702845fa935e (diff) |
Reworked categories handling
Removed GenericProtocol and replaced with categories
Removed ndpi_pref_enable_category_substring_match option: substring matching is now default
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r-- | src/lib/protocols/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index f63da2067..f621c2be3 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -1101,7 +1101,7 @@ int tlsDetectProtocolFromCertificate(struct ndpi_detection_module_struct *ndpi_s NDPI_LOG_DBG2(ndpi_struct, "***** [SSL] %s\n", certificate); #endif ndpi_protocol_match_result ret_match; - u_int32_t subproto = ndpi_match_host_subprotocol(ndpi_struct, flow, certificate, + u_int16_t subproto = ndpi_match_host_subprotocol(ndpi_struct, flow, certificate, strlen(certificate), &ret_match, NDPI_PROTOCOL_TLS); @@ -1117,7 +1117,7 @@ int tlsDetectProtocolFromCertificate(struct ndpi_detection_module_struct *ndpi_s ndpi_set_detected_protocol(ndpi_struct, flow, subproto, ndpi_tls_refine_master_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TLS)); - return(rc); /* Fix courtesy of Gianluca Costa <g.costa@xplico.org> */ + return(rc); } if(ndpi_is_tls_tor(ndpi_struct, flow, certificate) != 0) |