#include <cSSLSession.h>
Cache cSSLSessionBase1 for re-use. We can implement a version of this that supports storage in a db.
◆ cSSLSessionCache()
GrayLib::cSSLSessionCache::cSSLSessionCache |
( |
| ) |
|
Initialize an SSL cache context
◆ ~cSSLSessionCache()
GrayLib::cSSLSessionCache::~cSSLSessionCache |
( |
| ) |
|
|
virtual |
◆ AddToCache()
Cache set callback implementation (Thread-safe if _MT is enabled)
- pSession = session to store entry for
◆ put_CacheMaxEntries()
void GrayLib::cSSLSessionCache::put_CacheMaxEntries |
( |
int |
nMaxEntries | ) |
|
◆ put_CacheTimeout()
void GrayLib::cSSLSessionCache::put_CacheTimeout |
( |
TIMESECD_t |
nTimeout | ) |
|
Set the cache timeout (Default: cTimeUnits::k_nSecondsPerDay (1 day)) A timeout of 0 indicates no timeout.
- timeout cache entry timeout in seconds
◆ RestoreFromCache()
bool GrayLib::cSSLSessionCache::RestoreFromCache |
( |
cSSLSession * |
pSession | ) |
|
|
virtual |
Cache get callback implementation (Thread-safe if _MT is enabled)
- pSession = session to retrieve entry for Find isMatchHead
◆ m_Mutex
mutex to lock the cache. _MT
◆ m_nMaxEntries
int GrayLib::cSSLSessionCache::m_nMaxEntries |
◆ m_nTimeout
◆ m_pChain
cSSLSessionEntry* GrayLib::cSSLSessionCache::m_pChain |
start of the chain of stored sessions.
The documentation for this class was generated from the following files: