diff options
author | Toni <matzeton@googlemail.com> | 2022-07-05 16:35:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 16:35:23 +0200 |
commit | f4a1739f9c950963f94915916d0a9f088a803abc (patch) | |
tree | a9d56561dea8e1942085da181711b3591833e78b /src/lib/protocols/tls.c | |
parent | 388dfb8e1309d1998aa9e16a85b33041f9008035 (diff) |
Detect SMTPs w/ STARTTLS as TLS and dissect client/server hello. Fixes #1630. (#1637)
* FTP needs to get updated as well as it has similiar STARTTLS semantics -> follow-up
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r-- | src/lib/protocols/tls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 71e7ae504..69bec44f5 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -28,6 +28,8 @@ #include "ndpi_encryption.h" extern char *strptime(const char *s, const char *format, struct tm *tm); +extern int processTLSBlock(struct ndpi_detection_module_struct *ndpi_struct, + struct ndpi_flow_struct *flow); extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, uint32_t quic_version); extern int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_struct, @@ -839,8 +841,8 @@ int processCertificate(struct ndpi_detection_module_struct *ndpi_struct, /* **************************************** */ -static int processTLSBlock(struct ndpi_detection_module_struct *ndpi_struct, - struct ndpi_flow_struct *flow) { +int processTLSBlock(struct ndpi_detection_module_struct *ndpi_struct, + struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &ndpi_struct->packet; int ret; |