]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
cert validation cache
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 13 Dec 2012 22:31:55 +0000 (00:31 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 13 Dec 2012 22:31:55 +0000 (00:31 +0200)
commit14798e73bd28260d30e4512e2376c3a7dbf51164
tree6b52cd763cbd76d9073fd068480a53477b936c30
parent1024eeeaf10442560a3ce4837e545db23204d759
cert validation cache

This patch add cache to cert validation helper. The following new options
added to "sslcrtvalidator_program" configuration parameter to control cache
behaviour:
   ttl=n         TTL in seconds for cached results.The default is 60 secs
   cache=n       limit the result cache size. The default value is 2048

To implement the cert validation cache a new template class investigated,
the LruMap which implements a simple lru cache.

The LruMap templete class also used to replace the old Ssl::LocalContextStorage
class which implements a SSL contexts cache.

This is a Measurement Factory project
13 files changed:
src/base/LruMap.h [new file with mode: 0644]
src/base/Makefile.am
src/cf.data.pre
src/client_side.cc
src/forward.cc
src/forward.h
src/ssl/cert_validate_message.cc
src/ssl/cert_validate_message.h
src/ssl/context_storage.cc
src/ssl/context_storage.h
src/ssl/helper.cc
src/ssl/helper.h
src/tests/stub_libsslsquid.cc