aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-01-21 19:06:05 +0100
committerLuca Deri <deri@ntop.org>2021-01-21 19:06:05 +0100
commit15295ef4c520f1e74163d15119e217ee799a24aa (patch)
tree96c41348cd8b365c433900eb852fa62621441c8b /src/include
parent399755607d5bf5b68e62f324a8614351437051c1 (diff)
Reworked TLS fingerprint calcolation
Modified TLS memory free
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_typedefs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 76f9198da..7a1d0d9bd 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -672,13 +672,11 @@ struct ndpi_flow_tcp_struct {
u_int buffer_len, buffer_used;
u_int32_t next_seq[2]; /* Directions */
} message;
-
- void* srv_cert_fingerprint_ctx; /* SHA-1 */
/* NDPI_PROTOCOL_TLS */
u_int8_t hello_processed:1, certificate_processed:1, subprotocol_detected:1,
fingerprint_set:1, _pad:4;
- u_int8_t sha1_certificate_fingerprint[20], num_tls_blocks;
+ u_int8_t num_tls_blocks;
int16_t tls_application_blocks_len[NDPI_MAX_NUM_TLS_APPL_BLOCKS]; /* + = src->dst, - = dst->src */
} tls;
@@ -1264,7 +1262,8 @@ struct ndpi_flow_struct {
u_int32_t notBefore, notAfter;
char ja3_client[33], ja3_server[33];
u_int16_t server_cipher;
-
+ u_int8_t sha1_certificate_fingerprint[20];
+
struct {
u_int16_t cipher_suite;
char *esni;