✨feat(tsg_ssl_utils): client hello识别增加是否为esni的结果
This commit is contained in:
@@ -29,7 +29,8 @@ struct ssl_chello
|
|||||||
char* alpn;
|
char* alpn;
|
||||||
char* cipher_suites;
|
char* cipher_suites;
|
||||||
char* cipher_suites_tls13;
|
char* cipher_suites_tls13;
|
||||||
|
long long is_encrypt_sni;
|
||||||
};
|
};
|
||||||
struct ssl_chello* ssl_chello_parse(const unsigned char* buff, size_t buff_len, 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);
|
void ssl_chello_free(struct ssl_chello* chello);
|
||||||
|
|||||||
@@ -236,6 +236,10 @@ static enum chello_parse_result parse_extensions(const unsigned char* buff, size
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (buff[pos] == 0xff && buff[pos + 1] == 0xce)//identify encrypt sni
|
||||||
|
{
|
||||||
|
chello->is_encrypt_sni = 1;
|
||||||
|
}
|
||||||
pos += (4 + len);
|
pos += (4 + len);
|
||||||
}
|
}
|
||||||
/* Check we ended where we expected to */
|
/* Check we ended where we expected to */
|
||||||
|
|||||||
Reference in New Issue
Block a user