summaryrefslogtreecommitdiff
path: root/sys/include/libsec.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-05-21 02:26:57 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-05-21 02:26:57 +0200
commit40360a992d03ccccf69a36fa20359ad029b3afcf (patch)
tree30c26fc89c630c1be1f701a3ccb1b734f8271448 /sys/include/libsec.h
parenta1bbf39c341e0b7ae0c999b0a34c85ab157aa6c9 (diff)
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.
Diffstat (limited to 'sys/include/libsec.h')
-rw-r--r--sys/include/libsec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/libsec.h b/sys/include/libsec.h
index ccebac087..9a32aa554 100644
--- a/sys/include/libsec.h
+++ b/sys/include/libsec.h
@@ -383,6 +383,7 @@ typedef struct TLSconn{
uchar *sessionKey;
int sessionKeylen;
char *sessionConst;
+ char *serverName;
} TLSconn;
/* tlshand.c */