Botan 2.19.3
Crypto and TLS for C&
tls_session_manager_sqlite.cpp
Go to the documentation of this file.
1/*
2* SQLite TLS Session Manager
3* (C) 2012 Jack Lloyd
4*
5* Botan is released under the Simplified BSD License (see license.txt)
6*/
7
8#include <botan/tls_session_manager_sqlite.h>
9#include <botan/sqlite3.h>
10
11namespace Botan {
12
13namespace TLS {
14
17 const std::string& db_filename,
18 size_t max_sessions,
19 std::chrono::seconds session_lifetime) :
20 Session_Manager_SQL(std::make_shared<Sqlite3_Database>(db_filename),
21 passphrase,
22 rng,
23 max_sessions,
24 session_lifetime)
25 {}
26
27}
28
29}
Session_Manager_SQLite(const std::string &passphrase, RandomNumberGenerator &rng, const std::string &db_filename, size_t max_sessions=1000, std::chrono::seconds session_lifetime=std::chrono::seconds(7200))
Definition bigint.h:1143