37#ifndef _SharkSslSCMgr_h
38#define _SharkSslSCMgr_h
42#include "DoubleList.h"
struct SharkSslCon SharkSslCon
SharkSslCon is an opaque handle returned by function SharkSsl_createCon.
Definition: SharkSSL.h:496
SHARKSSL_API void SharkSslSCMgr_constructor(SharkSslSCMgr *o, SharkSsl *ssl, U32 maxTime)
SharkSslSCMgr simplifies using the session API for TLS clients; the constructor initializes a SharkSs...
SHARKSSL_API SharkSslSCMgrNode * SharkSslSCMgr_get(SharkSslSCMgr *o, SharkSslCon *scon, const char *host, U16 port)
Resume a session before starting the handshake.
SHARKSSL_API int SharkSslSCMgr_replace(SharkSslSCMgr *o, SharkSslSCMgrNode *n, SharkSslCon *scon)
Replace the saved session after a resumed TLS 1.3 connection receives a fresh session ticket.
SHARKSSL_API int SharkSslSCMgr_save(SharkSslSCMgr *o, SharkSslCon *scon, const char *host, U16 port)
Save the session when SharkSslSCMgr_get returns NULL.
struct SharkSslSession SharkSslSession
SharkSslSession is an opaque handle returned by function SharkSslCon_acquireSession.
Definition: SharkSSL.h:274
The handle returned by SharkSslSCMgr_get.
Definition: SharkSslSCMgr.h:61
DoubleLink dlink
Definition: SharkSslSCMgr.h:63
U16 hostLen
Definition: SharkSslSCMgr.h:66
SharkSslSession * ss
Definition: SharkSslSCMgr.h:64
U16 port
Definition: SharkSslSCMgr.h:67
SplayTreeNode super
Definition: SharkSslSCMgr.h:62
const char * host
Definition: SharkSslSCMgr.h:65
See SharkSslSCMgr_constructor for details.
Definition: SharkSslSCMgr.h:75
DoubleList dlist
Definition: SharkSslSCMgr.h:78
SplayTree stree
Definition: SharkSslSCMgr.h:77
SharkSsl * ssl
Definition: SharkSslSCMgr.h:79
U32 maxTime
Definition: SharkSslSCMgr.h:80
SharkSslIntf super
Definition: SharkSslSCMgr.h:76
int noOfSessions
Definition: SharkSslSCMgr.h:81
A SharkSsl object is the coordinator for managing SharkSslCon objects (See SharkSsl_constructor for d...
Definition: SharkSSL.h:512