aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-22 06:13:08 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-22 06:13:08 +0200
commitbe5e082c75b546c64ca61619f863961fb0f76ec5 (patch)
tree414a259a32f787abffc3e34fffd984092f51f6c2 /main.c
parent1e53dc7ad4d7c2859dafe137ecba98ae82500df6 (diff)
xcompile ready
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 09770c117..84f14b924 100644
--- a/main.c
+++ b/main.c
@@ -12,7 +12,7 @@
#include <unistd.h>
#if !(NDPI_MAJOR >= 3 && NDPI_MINOR >= 2)
-#error "nDPI 3.2.0 requiired"
+#error "nDPI >= 3.2.0 requiired"
#endif
#define MAX_FLOW_ROOTS_PER_THREAD 2048
@@ -823,6 +823,7 @@ static void ndpi_process_packet(uint8_t * const args,
flow_to_process->ndpi_flow->protos.stun_ssl.ssl.alpn : "-"));
flow_to_process->tls_client_hello_seen = 1;
}
+#if (NDPI_MAJOR >= 3 && NDPI_MINOR > 2)
if (flow_to_process->tls_server_hello_seen == 0 && flow_to_process->ndpi_flow->l4.tcp.tls.certificate_processed != 0) {
uint8_t unknown_tls_version = 0;
fprintf(stderr, "[%8llu, %d, %4d][TLS-SERVER-HELLO] version: %s | common-name(s): %.*s | issuer: %s | subject: %s\n",
@@ -839,6 +840,7 @@ static void ndpi_process_packet(uint8_t * const args,
flow_to_process->ndpi_flow->protos.stun_ssl.ssl.subjectDN : "-"));
flow_to_process->tls_server_hello_seen = 1;
}
+#endif
}
}
}