Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cSSLSessionCache Class Reference

#include <cSSLSession.h>

Public Member Functions

 cSSLSessionCache ()
 
virtual ~cSSLSessionCache ()
 
void put_CacheMaxEntries (int nMaxEntries)
 
void put_CacheTimeout (TIMESECD_t nTimeout)
 
virtual bool RestoreFromCache (cSSLSession *pSession)
 
virtual HRESULT AddToCache (const cSSLSession *pSession)
 

Public Attributes

cSSLSessionEntry * m_pChain
 start of the chain of stored sessions. More...
 
TIMESECD_t m_nTimeout
 cache entry timeout More...
 
int m_nMaxEntries
 maximum entries More...
 
cThreadLockMutex m_Mutex
 mutex to lock the cache. _MT More...
 

Detailed Description

Cache cSSLSessionBase1 for re-use. We can implement a version of this that supports storage in a db.

Constructor & Destructor Documentation

◆ cSSLSessionCache()

GrayLib::cSSLSessionCache::cSSLSessionCache ( )

Initialize an SSL cache context

◆ ~cSSLSessionCache()

GrayLib::cSSLSessionCache::~cSSLSessionCache ( )
virtual

Member Function Documentation

◆ AddToCache()

HRESULT GrayLib::cSSLSessionCache::AddToCache ( const cSSLSession pSession)
virtual

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)

Set the cache count max

  • max cache entry maximum

◆ 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

Member Data Documentation

◆ m_Mutex

cThreadLockMutex GrayLib::cSSLSessionCache::m_Mutex

mutex to lock the cache. _MT

◆ m_nMaxEntries

int GrayLib::cSSLSessionCache::m_nMaxEntries

maximum entries

◆ m_nTimeout

TIMESECD_t GrayLib::cSSLSessionCache::m_nTimeout

cache entry timeout

◆ 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: