aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-06-26 12:07:26 +0200
committerGitHub <noreply@github.com>2023-06-26 12:07:26 +0200
commit31a9da238cdbb2f5d7cd3d3d508e246f12dcdc8b (patch)
tree913629e6a7791cf487d66bc4494ddf0eaaee3b3d /src/lib/ndpi_main.c
parent88425e0199dc85f95b05ffb244c6ecc048dab853 (diff)
STUN: add dissection of DTLS handshake (#2018)
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index ac3227d74..e8cc046b4 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -3001,6 +3001,7 @@ struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs
ndpi_str->opportunistic_tls_imap_enabled = 1;
ndpi_str->opportunistic_tls_pop_enabled = 1;
ndpi_str->opportunistic_tls_ftp_enabled = 1;
+ ndpi_str->opportunistic_tls_stun_enabled = 1;
ndpi_str->monitoring_stun_pkts_to_process = 4;
ndpi_str->monitoring_stun_flags = 0;
@@ -9843,6 +9844,9 @@ int ndpi_set_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct,
case NDPI_PROTOCOL_FTP_CONTROL:
ndpi_struct->opportunistic_tls_ftp_enabled = value;
return 0;
+ case NDPI_PROTOCOL_STUN:
+ ndpi_struct->opportunistic_tls_stun_enabled = value;
+ return 0;
default:
return -1;
}
@@ -9865,6 +9869,8 @@ int ndpi_get_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct,
return ndpi_struct->opportunistic_tls_pop_enabled;
case NDPI_PROTOCOL_FTP_CONTROL:
return ndpi_struct->opportunistic_tls_ftp_enabled;
+ case NDPI_PROTOCOL_STUN:
+ return ndpi_struct->opportunistic_tls_stun_enabled;
default:
return -1;
}