Botan 2.1.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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,
16 RandomNumberGenerator& rng,
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 }
Botan::RandomNumberGenerator
Definition: rng.h:25
std
Definition: bigint.h:619
Botan::TLS::Session_Manager_SQLite::Session_Manager_SQLite
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: tls_session_manager_sqlite.cpp:15
Botan::Sqlite3_Database
Definition: sqlite3.h:18
Botan
Definition: alg_id.cpp:13
Botan::TLS::Session_Manager_SQL
Definition: tls_session_manager_sql.h:27