mirror of
https://github.com/hufrea/byedpi.git
synced 2024-11-29 11:48:59 +03:00
Make change_tls_sni arg const
This commit is contained in:
parent
d8334865b4
commit
9528a4421d
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ int find_tls_ext_offset(uint16_t type, char *data, size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int change_tls_sni(char *host, char *buffer, size_t bsize)
|
int change_tls_sni(const char *host, char *buffer, size_t bsize)
|
||||||
{
|
{
|
||||||
int sni_offs, pad_offs;
|
int sni_offs, pad_offs;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
extern char tls_data[517];
|
extern char tls_data[517];
|
||||||
extern char http_data[43];
|
extern char http_data[43];
|
||||||
|
|
||||||
int change_tls_sni(char *host, char *buffer, size_t bsize);
|
int change_tls_sni(const char *host, char *buffer, size_t bsize);
|
||||||
|
|
||||||
int parse_tls(char *buffer, size_t bsize, char **hs);
|
int parse_tls(char *buffer, size_t bsize, char **hs);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue