diff options
author | Michele Campus <fci1908@gmail.com> | 2016-08-12 15:27:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-12 15:27:11 +0200 |
commit | 7853c4a90ba102b451ec8cee3353a4836ff00176 (patch) | |
tree | 239fe13d451ba3c203efaf3b821dba515f9bbf30 /src/lib/protocols/ssl.c | |
parent | 92cac451c87c149f7883c79b5a7f890c7d2043f3 (diff) | |
parent | e7613a385149e9f949960a8dd0884fef12b82282 (diff) |
Merge pull request #244 from emanuele-f/starttls
Add STARTTLS detection
Diffstat (limited to 'src/lib/protocols/ssl.c')
-rw-r--r-- | src/lib/protocols/ssl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/protocols/ssl.c b/src/lib/protocols/ssl.c index e730c06c5..4e2ce1bf1 100644 --- a/src/lib/protocols/ssl.c +++ b/src/lib/protocols/ssl.c @@ -64,7 +64,11 @@ static void ndpi_int_ssl_add_connection(struct ndpi_detection_module_struct *ndp u_int16_t dport = ntohs(packet->tcp->dest); if((sport == 465) || (dport == 465)) protocol = NDPI_PROTOCOL_MAIL_SMTPS; - else if((sport == 993) || (dport == 993)) protocol = NDPI_PROTOCOL_MAIL_IMAPS; + else if((sport == 993) || (dport == 993) +#ifdef NDPI_PROTOCOL_MAIL_IMAP + || (flow->l4.tcp.mail_imap_starttls) +#endif + ) protocol = NDPI_PROTOCOL_MAIL_IMAPS; else if((sport == 995) || (dport == 995)) protocol = NDPI_PROTOCOL_MAIL_POPS; } break; |