summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-12-25 17:05:05 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-12-25 17:05:05 +0100
commit39f18c9d88f52a22373790dec5721fa3521d3f00 (patch)
treebfca6b71de83fa380f3b581c7e9726d955218d08 /sys/include
parent4a6ab355c1af789f7ddb4edbf4d82d17efd9d2bf (diff)
libsec: implement TLS-PSK for tlsClient()/tlsServer()
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/libsec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/libsec.h b/sys/include/libsec.h
index 0b3ba44ac..86cb342e5 100644
--- a/sys/include/libsec.h
+++ b/sys/include/libsec.h
@@ -412,8 +412,10 @@ typedef struct TLSconn{
char dir[40]; /* connection directory */
uchar *cert; /* certificate (local on input, remote on output) */
uchar *sessionID;
+ uchar *psk;
int certlen;
int sessionIDlen;
+ int psklen;
int (*trace)(char*fmt, ...);
PEMChain*chain; /* optional extra certificate evidence for servers to present */
char *sessionType;
@@ -421,6 +423,7 @@ typedef struct TLSconn{
int sessionKeylen;
char *sessionConst;
char *serverName;
+ char *pskID;
} TLSconn;
/* tlshand.c */