Make change_tls_sni arg const

This commit is contained in:
dovecoteescapee 2024-03-02 19:13:55 +03:00
parent d8334865b4
commit 9528a4421d
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -13,7 +13,7 @@
extern char tls_data[517];
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);