Closed slaff closed 8 years ago
I think we also need to add a public method to set hostname, something like
EXP_FUNC bool STDCALL ssl_set_hostname(const SSL *ssl, const char* hostname);
which would validate the length of hostname
and call strlcpy
to fill the internal structure.
@igrr I added the ssl_set_hostname
function. Check it when you have time.
@Links2004 Very good suggestion. Check the latest commit.
…pport.