diff options
| author | liuxueli <[email protected]> | 2024-09-14 16:26:34 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2024-10-16 11:47:27 +0800 |
| commit | 93d17f6f5a116854fa05f5ef55b18baea9ca987b (patch) | |
| tree | df9705fbc372c38f0c83a48076617d72b1c2db91 /include | |
| parent | 482b1ac98c28ccf1908e1c7aeb9927135dfda494 (diff) | |
Feature: Support calculating JA4/JA4S fingerprintv3.2.0
Diffstat (limited to 'include')
| -rw-r--r-- | include/ssl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/ssl.h b/include/ssl.h index 6ef7f83..e8f7140 100644 --- a/include/ssl.h +++ b/include/ssl.h @@ -30,7 +30,10 @@ enum ssl_interested_region #define TLSV1_0_VERSION 0x0301 #define TLSV1_1_VERSION 0x0302 #define TLSV1_2_VERSION 0x0303 +#define TLSV1_3_VERSION 0x0304 #define DTLSV1_0_VERSION 0xfeff +#define DTLSV1_2_VERSION 0xfefd +#define DTLSV1_3_VERSION 0xfefc #define DTLSV1_0_VERSION_NOT 0x0100 #define TLCPV1_VERSION 0x0101 @@ -80,8 +83,8 @@ struct ssl_extenstions; #define MAX_JA_MD5_STR_LEN 128 struct ssl_ja_fingerprint { - int md5_len; - char md5[MAX_JA_MD5_STR_LEN]; + int value_sz; + char value[MAX_JA_MD5_STR_LEN]; }; #define MAX_SERVER_NAME_LEN 512 @@ -100,6 +103,7 @@ struct ssl_client_hello struct ssl_encrypt_server_name esni; char server_name[MAX_SERVER_NAME_LEN]; struct ssl_ja_fingerprint ja3; + struct ssl_ja_fingerprint ja4; }; struct ssl_server_hello @@ -108,12 +112,14 @@ struct ssl_server_hello unsigned short version; unsigned short extension_len; unsigned short extension_num; - struct ssl_ja_fingerprint ja3s; + struct ssl_random random; struct ssl_l1v session; struct ssl_l2v ciphersuites; struct ssl_l1v compress_method; struct ssl_extenstions *extensions; + struct ssl_ja_fingerprint ja3s; + struct ssl_ja_fingerprint ja4s; }; struct ssl_new_session_ticket |
