diff options
author | Luca Deri <deri@ntop.org> | 2019-05-20 22:30:53 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-05-20 22:30:53 +0200 |
commit | 04b543caa9480b61526c16c7cdfa06ae7d2937df (patch) | |
tree | c264c92e5f5ae6a092aa617f4865cf1b4c4d26e4 /example | |
parent | 3f9383c343fc2740aba74904ae3ecdd56aa736c7 (diff) |
SSL certificate analysis improvement
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 6 | ||||
-rw-r--r-- | example/ndpi_util.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index ec9f22d15..a7aa79e17 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -749,13 +749,13 @@ char* intoaV4(u_int32_t addr, char* buf, u_int16_t bufLen) { /* ********************************** */ -static char* print_cipher(u_int8_t c) { +static char* print_cipher(ndpi_cipher_weakness c) { switch(c) { - case NDPI_CIPHER_INSECURE: + case ndpi_cipher_insecure: return(" (INSECURE)"); break; - case NDPI_CIPHER_WEAK: + case ndpi_cipher_weak: return(" (WEAK)"); break; diff --git a/example/ndpi_util.h b/example/ndpi_util.h index d5a46735c..a1b61454d 100644 --- a/example/ndpi_util.h +++ b/example/ndpi_util.h @@ -99,7 +99,7 @@ typedef struct ndpi_flow_info { struct { char client_info[64], server_info[64], server_organization[64], ja3_client[33], ja3_server[33]; - u_int8_t client_unsafe_cipher:2, server_unsafe_cipher:2, _pad:4; + ndpi_cipher_weakness client_unsafe_cipher, server_unsafe_cipher; } ssh_ssl; void *src_id, *dst_id; |