SSL certificate analysis improvement
This commit is contained in:
@@ -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) {
|
switch(c) {
|
||||||
case NDPI_CIPHER_INSECURE:
|
case ndpi_cipher_insecure:
|
||||||
return(" (INSECURE)");
|
return(" (INSECURE)");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NDPI_CIPHER_WEAK:
|
case ndpi_cipher_weak:
|
||||||
return(" (WEAK)");
|
return(" (WEAK)");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ typedef struct ndpi_flow_info {
|
|||||||
struct {
|
struct {
|
||||||
char client_info[64], server_info[64], server_organization[64],
|
char client_info[64], server_info[64], server_organization[64],
|
||||||
ja3_client[33], ja3_server[33];
|
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;
|
} ssh_ssl;
|
||||||
|
|
||||||
void *src_id, *dst_id;
|
void *src_id, *dst_id;
|
||||||
|
|||||||
@@ -1021,6 +1021,12 @@ struct ndpi_detection_module_struct {
|
|||||||
|
|
||||||
#endif /* NDPI_LIB_COMPILATION */
|
#endif /* NDPI_LIB_COMPILATION */
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
ndpi_cipher_safe = NDPI_CIPHER_SAFE,
|
||||||
|
ndpi_cipher_weak = NDPI_CIPHER_WEAK,
|
||||||
|
ndpi_cipher_insecure = NDPI_CIPHER_INSECURE
|
||||||
|
} ndpi_cipher_weakness;
|
||||||
|
|
||||||
struct ndpi_flow_struct {
|
struct ndpi_flow_struct {
|
||||||
u_int16_t detected_protocol_stack[NDPI_PROTOCOL_SIZE];
|
u_int16_t detected_protocol_stack[NDPI_PROTOCOL_SIZE];
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
@@ -1093,7 +1099,7 @@ struct ndpi_flow_struct {
|
|||||||
struct {
|
struct {
|
||||||
char client_certificate[64], server_certificate[64], server_organization[64];
|
char client_certificate[64], server_certificate[64], server_organization[64];
|
||||||
char ja3_client[33], ja3_server[33];
|
char 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;
|
||||||
} ssl;
|
} ssl;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ struct ja3_info {
|
|||||||
|
|
||||||
struct cipher_weakness {
|
struct cipher_weakness {
|
||||||
u_int16_t cipher_id;
|
u_int16_t cipher_id;
|
||||||
u_int8_t weakness_type;
|
ndpi_cipher_weakness weakness_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct cipher_weakness safe_ssl_ciphers[] =
|
static struct cipher_weakness safe_ssl_ciphers[] =
|
||||||
|
|||||||
Reference in New Issue
Block a user