修改ssl_chello_parse相关函数,处理TLS Grease导致的客户端标识不准确,详见 https://security.stackexchange.com/questions/176951/google-chrome-weird-random-cipher-suite
This commit is contained in:
@@ -210,11 +210,11 @@ struct ssl_chello
|
||||
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);
|
||||
struct ssl_chello* ssl_chello_parse(const unsigned char* buff, size_t buff_len, enum chello_parse_result* result);
|
||||
|
||||
void ssl_chello_free(struct ssl_chello* chello);
|
||||
|
||||
int ssl_cipher_suites_convert(const char *source, int source_len, char *target_common, char *target_tls13);
|
||||
void ssl_cipher_suites_to_name(const char *source, int source_len, char *result_common, size_t sz_common, char *result_tls13, size_t sz_tls13);
|
||||
|
||||
|
||||
#endif /* !SSL_H */
|
||||
|
||||
Reference in New Issue
Block a user