diff options
| author | liuxueli <[email protected]> | 2020-09-11 16:40:19 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-09-11 16:40:19 +0800 |
| commit | 94bf01a4dd3929a6236a0bbfb220acbda674331f (patch) | |
| tree | 33f9fac6175e1bdbacd405ae598fcee731c155fa /src | |
| parent | 31b157c12feb8b8f329174889ceae9e5ee461cab (diff) | |
支持生成JA3指纹
Diffstat (limited to 'src')
| -rw-r--r-- | src/SSL_Analyze.c | 1 | ||||
| -rw-r--r-- | src/ssl.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/SSL_Analyze.c b/src/SSL_Analyze.c index d63e038..6f887c9 100644 --- a/src/SSL_Analyze.c +++ b/src/SSL_Analyze.c @@ -170,6 +170,7 @@ int SSL_INIT(void) /*MESA_proto*/ g_ssl_prog_para.proto_tag_id = project_producer_register("MESA_PROTO","struct",ssl_proto_tag_free); + ssl_ja3_init(); if(g_ssl_prog_para.stat_cycle) @@ -219,6 +219,16 @@ int ssl_read_specific_cert(const char* conj_cert_buf, uint32_t conj_buflen, uint const char* ssl_get_suite(st_suites_t* ciphersuits); +struct _ssl_ja3_info_t +{ + int sni_len; + int fp_len; + char *sni; + char *fp; +}; + +int ssl_ja3_init(void); +struct _ssl_ja3_info_t *ssl_get_ja3_fingerprint(struct streaminfo *stream, unsigned char *payload, int payload_len, int thread_seq); #ifdef __cplusplus } |
