修改chello_parse函数,支持解析supported_versions, supported_groups,signature_algorithms,修改cipher_suites解析结果为原始报文

This commit is contained in:
崔一鸣
2019-05-24 20:21:55 +08:00
parent 7a8561ae5a
commit 75208aad0f
4 changed files with 360 additions and 360 deletions

View File

@@ -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);