diff options
author | Luca Deri <deri@ntop.org> | 2019-11-21 23:31:52 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-11-21 23:31:52 +0100 |
commit | bdc0719e7633904749d97089844019b0bf589963 (patch) | |
tree | 65908e5944a194eb6897186c119634b49d677f7f /src/lib/ndpi_utils.c | |
parent | fc82cdfa4ac11e34725319620cdc549cb1b700d0 (diff) |
Added auth failed support with FTP
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 067c9456d..035a51e96 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -970,6 +970,7 @@ int ndpi_flow2json(struct ndpi_detection_module_struct *ndpi_struct, case NDPI_PROTOCOL_TELNET: ndpi_serialize_start_of_block(serializer, "telnet"); ndpi_serialize_string_string(serializer, "username", flow->protos.telnet.username); + ndpi_serialize_string_string(serializer, "password", flow->protos.telnet.password); ndpi_serialize_end_of_block(serializer); break; @@ -1009,6 +1010,7 @@ int ndpi_flow2json(struct ndpi_detection_module_struct *ndpi_struct, ndpi_serialize_start_of_block(serializer, "ftp"); ndpi_serialize_string_string(serializer, "user", flow->protos.ftp_imap_pop_smtp.username); ndpi_serialize_string_string(serializer, "password", flow->protos.ftp_imap_pop_smtp.password); + ndpi_serialize_string_uint32(serializer, "auth_failed", flow->protos.ftp_imap_pop_smtp.auth_failed); ndpi_serialize_end_of_block(serializer); break; |