libsec: implement tlsClient support for RFC6066 server name identification (SNI)

tlsClient() now can optionally send the server_name in the ClientHello
message by setting the TLSconn.serverName. This is required for some
https sites.
This commit is contained in:
cinap_lenrek 2015-05-21 02:26:57 +02:00
parent a1bbf39c34
commit 40360a992d
3 changed files with 93 additions and 15 deletions

View file

@ -383,6 +383,7 @@ typedef struct TLSconn{
uchar *sessionKey;
int sessionKeylen;
char *sessionConst;
char *serverName;
} TLSconn;
/* tlshand.c */