Nardi Ivan
b9cb391756
Add support to opportunistic TLS
...
A lot of protocols provide the feature to upgrade their plain text
connections to an encrypted one, via some kind of "STARTTLS" command.
Add generic code to support this extension, and allow dissection of the
entire TLS handshake.
As examples, SMTP, POP, IMAP and FTP dissectors have been updated.
Since this feature requires to process more packets per flow, add the
possibility to disable it.
Fix some log messages.
Slight improvement on TCP sequence number tracking.
As a side effect, this commit fix also a memory leak found by
oss-fuzzer
```
==108966==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 22 byte(s) in 1 object(s) allocated from:
#0 0x55f8b367a0be in malloc (/home/ivan/svnrepos/nDPI/fuzz/fuzz_ndpi_reader_with_main+0x5480be) (BuildId: 94debacb4a6784c30420ab748c8bf3cc59621063)
#1 0x55f8b36e1345 in ndpi_malloc_wrapper /home/ivan/svnrepos/nDPI/example/reader_util.c:321:10
#2 0x55f8b379c7d2 in ndpi_malloc /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:212:25
#3 0x55f8b379cb18 in ndpi_strdup /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:279:13
#4 0x55f8b386ce46 in processClientServerHello /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:2153:34
#5 0x55f8b385ebf7 in processTLSBlock /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:867:5
#6 0x55f8b39e708c in ndpi_extra_search_mail_smtp_tcp /home/ivan/svnrepos/nDPI/src/lib/protocols/mail_smtp.c:422:9
#7 0x55f8b37e636c in ndpi_process_extra_packet /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:5884:9
#8 0x55f8b37edc05 in ndpi_detection_process_packet /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:6276:5
#9 0x55f8b3701ffc in packet_processing /home/ivan/svnrepos/nDPI/example/reader_util.c:1619:31
#10 0x55f8b36faf14 in ndpi_workflow_process_packet /home/ivan/svnrepos/nDPI/example/reader_util.c:2189:10
#11 0x55f8b36b6a50 in LLVMFuzzerTestOneInput /home/ivan/svnrepos/nDPI/fuzz/fuzz_ndpi_reader.c:107:7
```
See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50765
2022-09-04 17:22:19 +02:00
..
2022-08-24 13:22:46 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-30 12:05:43 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-02 16:15:07 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-31 16:57:17 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2020-03-23 10:06:16 +01:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-10 21:00:11 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-30 12:05:43 +02:00
2022-07-29 15:25:00 +02:00
2022-07-30 12:05:43 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-30 11:38:36 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-09-04 17:22:19 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-08-08 19:04:20 +02:00
2021-04-18 21:37:51 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-30 22:57:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-03 12:03:36 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-09-04 17:22:19 +02:00
2022-08-24 13:22:46 +02:00
2022-07-30 12:05:43 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 10:50:11 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-30 11:21:58 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-05 14:14:38 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-31 16:57:17 +02:00
2022-07-29 15:25:00 +02:00
2022-09-04 17:22:19 +02:00
2022-08-24 13:22:46 +02:00
2022-07-30 12:05:43 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 15:38:30 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-03 12:03:36 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-31 16:57:17 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-09-04 17:22:19 +02:00
2022-08-24 13:22:46 +02:00
2022-07-30 12:05:43 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-08 19:04:20 +02:00
2022-08-08 19:04:20 +02:00
2022-09-04 17:22:19 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-09-04 17:22:19 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-31 16:57:17 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-08-08 19:04:20 +02:00
2022-07-31 16:57:17 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-24 13:22:46 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-07-29 15:25:00 +02:00
2022-08-08 19:04:20 +02:00
2022-08-24 13:22:46 +02:00