diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-07-05 13:11:41 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-07-05 16:33:11 +0200 |
commit | 82d07eb351c1a4dc25326148e6fc390f9c065d34 (patch) | |
tree | 14a2cf37cb79a1f12e2fbfce641106f54eff9fb3 /src/lib/protocols/tls.c | |
parent | 7fa8d882d83577334c7c91843eb40c2ebae8bf74 (diff) |
Detect SMTPs w/ STARTTLS as TLS and dissect client/server hello. Fixes #1630.improved/smtp-starttls
* 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; |