NAME
SSLCTXsesssetcachesize, SSLCTXsessgetcachesize - manipulate
session cache sizeSYNOPSIS
#include
long SSLCTXsesssetcachesize(SSLCTX *ctx, long t); long SSLCTXsessgetcachesize(SSLCTX *ctx);DESCRIPTION
SSLCTXsesssetcachesize() sets the size of the internal session cache of context ccttxx to tt. SSLCTXsessgetcachesize() returns the currently valid session cache size. NNOOTTEESS The internal session cache size is SSLSESSIONCACHEMAXSIZEDEFAULT, currently 1024*20, so that up to 20000 sessions can be held. This size can be modified using the SSLCTXsesssetcachesize() call. A special case is the size 0, which is used for unlimited size. When the maximum number of sessions is reached, no more new sessions are added to the cache. New space may be added by calling SSLCTXflushsessions(3) to remove expired sessions. If the size of the session cache is reduced and more sessions are already in the session cache, old session will be removed at the next time a session shall be added. This removal is not synchronized with the expiration of sessions.RETURN VALUES
SSLCTXsesssetcachesize() returns the previously valid size. SSLCTXsessgetcachesize() returns the currently valid size.SEE ALSO
ssl(3), SSLCTXsetsessioncachemode(3), SSLCTXsessnumber(3), SSLCTXflushsessions(3)0.9.7l 2002-07-10 SSLCTXsesssetcachesize(3)