aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-05-10 21:40:35 +0200
committerLuca Deri <deri@ntop.org>2020-05-10 21:40:35 +0200
commitae803c8b51dec9e31e99cb37cd64bd968b314669 (patch)
tree970bcda3c671e73fd6d7b12b621595925bfee4f1 /src/lib/ndpi_utils.c
parente5e69d0f7ab382e3507660fe752027c09e32310e (diff)
Added detection of self-signed TLS certificates
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 4eec5d906..2fa21e220 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1410,14 +1410,22 @@ const char* ndpi_risk2str(ndpi_risk risk) {
switch(risk) {
case NDPI_URL_POSSIBLE_XSS:
return("XSS attack");
+
case NDPI_URL_POSSIBLE_SQL_INJECTION:
return("SQL injection");
+
case NDPI_URL_POSSIBLE_RCE_INJECTION:
return("RCE injection");
+
case NDPI_BINARY_APPLICATION_TRANSFER:
return("Binary application transfer");
+
case NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT:
return("Known protocol on non standard port");
+
+ case NDPI_TLS_SELFSIGNED_CERTIFICATE:
+ return("Self-signed Certificate");
+
default:
return("");
}