Skip to content

Commit

Permalink
Serialize amount of found TLS blocks and signature algos. (#2384)
Browse files Browse the repository at this point in the history
* partially fixes #2282

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
  • Loading branch information
utoni authored Apr 11, 2024
1 parent 8b4fdbc commit 39a5d23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/ndpi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,11 @@ static void ndpi_tls2json(ndpi_serializer *serializer, struct ndpi_flow_struct *
ndpi_serialize_string_string(serializer, "fingerprint", buf);
}

ndpi_serialize_string_uint32(serializer, "blocks", flow->l4.tcp.tls.num_tls_blocks);
#ifdef TLS_HANDLE_SIGNATURE_ALGORITMS
ndpi_serialize_string_uint32(serializer, "sig_algs", flow->protos.tls_quic.num_tls_signature_algorithms);
#endif

ndpi_serialize_end_of_block(serializer);
}
}
Expand Down

0 comments on commit 39a5d23

Please sign in to comment.