igrr / axtls-8266

axTLS port for ESP8266
Other
79 stars 33 forks source link

Added SNI ( https://en.wikipedia.org/wiki/Server_Name_Indication ) su… #7

Closed slaff closed 8 years ago

slaff commented 8 years ago

…pport.

igrr commented 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.

slaff commented 8 years ago

@igrr I added the ssl_set_hostname function. Check it when you have time.

slaff commented 8 years ago

@Links2004 Very good suggestion. Check the latest commit.