aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/ssl.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-01-17 00:40:28 +0100
committerLuca Deri <deri@ntop.org>2019-01-17 00:40:28 +0100
commitefef99cbadc8ddd6f6743e04d184fe240d6eb334 (patch)
tree2f2f02e0a26128f1db2fc6ca12b497da1202b720 /src/lib/protocols/ssl.c
parentc856e0a56384ae9d145282d0eb6f8b97f54913fb (diff)
Removed this party LRU and replaced with home grown
Diffstat (limited to 'src/lib/protocols/ssl.c')
-rw-r--r--src/lib/protocols/ssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/protocols/ssl.c b/src/lib/protocols/ssl.c
index 25d535a57..785ffa70d 100644
--- a/src/lib/protocols/ssl.c
+++ b/src/lib/protocols/ssl.c
@@ -626,6 +626,10 @@ void ndpi_search_ssl_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
struct ndpi_packet_struct *packet = &flow->packet;
u_int8_t ret;
+ if(flow->packet.tcp && (5222 == ntohs(flow->packet.tcp->dest)))
+ printf("%u - %u\n", ntohs(flow->packet.tcp->source), ntohs(flow->packet.tcp->dest));
+
+
if(packet->detected_protocol_stack[0] == NDPI_PROTOCOL_SSL) {
if(flow->l4.tcp.ssl_stage == 3 && packet->payload_packet_len > 20 && flow->packet_counter < 5) {
/* this should only happen, when we detected SSL with a packet that had parts of the certificate in subsequent packets