aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2024-01-09 19:56:28 +0100
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-01-18 10:21:24 +0100
commit311d8b6daed7703678c25ed4b7249db1c6bbc556 (patch)
tree59fe1547b8a4b77f8d0651ff8c0767bd5421bb55 /src/include
parent4cbe2674abd5a9641017a8c4ceb82f8449bf0119 (diff)
config: move cfg of aggressiviness and opportunistic TLS to the new API
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h10
-rw-r--r--src/include/ndpi_private.h20
2 files changed, 12 insertions, 18 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 44dd87bf2..177f7bb75 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -1074,16 +1074,6 @@ extern "C" {
lru_cache_type cache_type,
struct ndpi_lru_cache_stats *stats);
- int ndpi_set_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct,
- u_int16_t proto, int value);
- int ndpi_get_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct,
- u_int16_t proto);
-
- int ndpi_set_protocol_aggressiveness(struct ndpi_detection_module_struct *ndpi_struct,
- u_int16_t proto, u_int32_t value);
- u_int32_t ndpi_get_protocol_aggressiveness(struct ndpi_detection_module_struct *ndpi_struct,
- u_int16_t proto);
-
/**
* Find a protocol id associated with a string automata
*
diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h
index 1f45987d8..3ec291f51 100644
--- a/src/include/ndpi_private.h
+++ b/src/include/ndpi_private.h
@@ -174,6 +174,18 @@ struct ndpi_detection_module_config_struct {
int tls_sha1_fingerprint_enabled;
+ int smtp_opportunistic_tls_enabled;
+
+ int imap_opportunistic_tls_enabled;
+
+ int pop_opportunistic_tls_enabled;
+
+ int ftp_opportunistic_tls_enabled;
+
+ int stun_opportunistic_tls_enabled;
+
+ int ookla_aggressiveness;
+
NDPI_PROTOCOL_BITMASK ip_list_bitmask;
int flow_risk_lists_enabled;
@@ -294,14 +306,6 @@ struct ndpi_detection_module_struct {
/* *** If you add a new LRU cache, please update lru_cache_type above! *** */
- int opportunistic_tls_smtp_enabled;
- int opportunistic_tls_imap_enabled;
- int opportunistic_tls_pop_enabled;
- int opportunistic_tls_ftp_enabled;
- int opportunistic_tls_stun_enabled;
-
- u_int32_t aggressiveness_ookla;
-
int tcp_ack_paylod_heuristic;
int fully_encrypted_based_on_first_pkt_heuristic;