Botan
3.6.1
Crypto and TLS for C&
src
lib
tls
sessions_sqlite3
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
10
#include <botan/sqlite3.h>
11
12
namespace
Botan::TLS
{
13
14
Session_Manager_SQLite::Session_Manager_SQLite
(std::string_view passphrase,
15
const
std::shared_ptr<RandomNumberGenerator>& rng,
16
std::string_view db_filename,
17
size_t
max_sessions) :
18
Session_Manager_SQL
(std::make_shared<
Sqlite3_Database
>(db_filename), passphrase, rng, max_sessions) {}
19
20
}
// namespace Botan::TLS
Botan::Sqlite3_Database
Definition
sqlite3.h:20
Botan::TLS::Session_Manager_SQL
Definition
tls_session_manager_sql.h:28
Botan::TLS::Session_Manager_SQLite::Session_Manager_SQLite
Session_Manager_SQLite(std::string_view passphrase, const std::shared_ptr< RandomNumberGenerator > &rng, std::string_view db_filename, size_t max_sessions=1000)
Definition
tls_session_manager_sqlite.cpp:14
Botan::TLS
Definition
asio_context.cpp:17
Generated by
1.12.0