diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-09-20 18:33:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 18:33:40 +0200 |
commit | 1385f05713045b846f5a830cfc23eabd5f71e70d (patch) | |
tree | 0f95d7f1cd5ea9d1053280d317a247cb4e2f083f /src/lib/ndpi_utils.c | |
parent | 6a7139bb24c4835604641262a07becee637a9e53 (diff) | |
parent | d0052fd5b2c48c8ab344d17bf4b603e80b6e1a29 (diff) |
Merge pull request #1017 from lnslbrty/fix/mingw-xcompile
Added support for mingw xcompile.
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 1a8459c34..4ec8e28ff 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); |