修改chello_parse函数,支持解析supported_versions, supported_groups,signature_algorithms,修改cipher_suites解析结果为原始报文
This commit is contained in:
@@ -191,7 +191,7 @@ enum chello_parse_result
|
||||
|
||||
struct ssl_version
|
||||
{
|
||||
uint8_t minor;
|
||||
uint8_t minor;
|
||||
uint8_t major;
|
||||
uint16_t ossl_format;
|
||||
};
|
||||
@@ -201,10 +201,14 @@ struct ssl_chello
|
||||
struct ssl_version min_version;
|
||||
struct ssl_version max_version;
|
||||
|
||||
char* sni;
|
||||
char* alpn;
|
||||
char* cipher_suites;
|
||||
char* cipher_suites_tls13;
|
||||
char *sni;
|
||||
char *alpn;
|
||||
char *sign_algos;
|
||||
uint16_t sign_algos_len;
|
||||
char *supported_groups;
|
||||
uint16_t supported_groups_len;
|
||||
char *cipher_suites;
|
||||
uint16_t cipher_suites_len;
|
||||
};
|
||||
struct ssl_chello* ssl_chello_parse(const unsigned char* buff, size_t buff_len, int parse_cipher, enum chello_parse_result* result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user