aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-09-08 19:52:46 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-09-08 19:52:46 +0200
commit4c776501a652fc8b90fdf8098a20c5099b0fcfce (patch)
tree4344f1529c161cd59f4c8fba886754e128171fd0 /src/lib/ndpi_utils.c
parent8ed6409b350a8838b7905aa48b47e430ed48f959 (diff)
Fixed shlib xcompile for x86_64-w64-mingw32
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 897096b70..39b85a5ef 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -31,6 +31,7 @@
#include "ndpi_config.h"
#include "ndpi_api.h"
+#include "ndpi_includes.h"
#include "ahocorasick.h"
#include "libcache.h"
@@ -1270,12 +1271,12 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_serialize_string_string(serializer, "server_names", flow->protos.stun_ssl.ssl.server_names);
if(before) {
- strftime(notBefore, sizeof(notBefore), "%F %T", before);
+ strftime(notBefore, sizeof(notBefore), "%Y-%m-%d %H:%M:%S", before);
ndpi_serialize_string_string(serializer, "notbefore", notBefore);
}
if(after) {
- strftime(notAfter, sizeof(notAfter), "%F %T", after);
+ strftime(notAfter, sizeof(notAfter), "%Y-%m-%d %H:%M:%S", after);
ndpi_serialize_string_string(serializer, "notafter", notAfter);
}
ndpi_serialize_string_string(serializer, "ja3", flow->protos.stun_ssl.ssl.ja3_client);