Botan  2.8.0
Crypto and TLS for C++11
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 
11 namespace Botan {
12 
13 namespace TLS {
14 
15 Session_Manager_SQLite::Session_Manager_SQLite(const std::string& passphrase,
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 }
Definition: bigint.h:891
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: alg_id.cpp:13