diff options
author | pacant <pacant2@gmail.com> | 2021-07-14 11:13:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 11:13:22 +0200 |
commit | 19a29e1e228f4a821c7ce89be064f70d80f4282a (patch) | |
tree | 20eab205da8fff9108fe83ee8a088f92ef02f553 /src/lib/ndpi_utils.c | |
parent | c411df523e7e418a9bd9074768308e86370f5aa4 (diff) |
TLS Risks - Certificate Validity Too Long (#1239)
* Added flow risk: TLS certificate too long
* Added flow risk: TLS certificate too long
* Date for TLS limit added
* TLS certificate check fixed
Co-authored-by: pacant <a.pace97@outlook.com>
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 95f0a4345..3a3c18aff 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1731,6 +1731,10 @@ const char* ndpi_risk2str(ndpi_risk_enum risk) { case NDPI_TLS_UNCOMMON_ALPN: return("Uncommon TLS ALPN"); + + case NDPI_TLS_CERT_VALIDITY_TOO_LONG: + return("TLS certificate validity longer than 13 months"); + default: snprintf(buf, sizeof(buf), "%d", (int)risk); |