summaryrefslogtreecommitdiff
path: root/include/ssl.h
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2024-09-13 17:07:23 +0800
committerliuxueli <[email protected]>2024-09-13 17:07:23 +0800
commit482b1ac98c28ccf1908e1c7aeb9927135dfda494 (patch)
treeeccaed9147c0dd471534c672e7038df192eb3141 /include/ssl.h
parent253f0691faa09f2b9ec05664484341700e466da8 (diff)
Feature: refactor generate ja3/ja3s code
Diffstat (limited to 'include/ssl.h')
-rw-r--r--include/ssl.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/ssl.h b/include/ssl.h
index d5c1d96..6ef7f83 100644
--- a/include/ssl.h
+++ b/include/ssl.h
@@ -75,13 +75,7 @@ struct ssl_encrypt_server_name
struct ssl_l2v record_digest;
};
-#define MAX_EXTENSION_NUM 16
-struct ssl_extenstions
-{
- unsigned short len;
- unsigned short num;
- struct ssl_l2tv extension[MAX_EXTENSION_NUM];
-};
+struct ssl_extenstions;
#define MAX_JA_MD5_STR_LEN 128
struct ssl_ja_fingerprint
@@ -102,7 +96,7 @@ struct ssl_client_hello
struct ssl_l2tv *encrypt_chello;
struct ssl_l2tv *session_ticket;
struct ssl_l2tv *alpn;
- struct ssl_extenstions extensions;
+ struct ssl_extenstions *extensions;
struct ssl_encrypt_server_name esni;
char server_name[MAX_SERVER_NAME_LEN];
struct ssl_ja_fingerprint ja3;
@@ -119,7 +113,7 @@ struct ssl_server_hello
struct ssl_l1v session;
struct ssl_l2v ciphersuites;
struct ssl_l1v compress_method;
- struct ssl_extenstions extensions;
+ struct ssl_extenstions *extensions;
};
struct ssl_new_session_ticket