Botan  1.11.15
src/lib/tls/sessions_sqlite3/tls_session_manager_sqlite.cpp
Go to the documentation of this file.
00001 /*
00002 * SQLite TLS Session Manager
00003 * (C) 2012 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #include <botan/tls_session_manager_sqlite.h>
00009 #include <botan/sqlite3.h>
00010 
00011 namespace Botan {
00012 
00013 namespace TLS {
00014 
00015 Session_Manager_SQLite::Session_Manager_SQLite(const std::string& passphrase,
00016                                                RandomNumberGenerator& rng,
00017                                                const std::string& db_filename,
00018                                                size_t max_sessions,
00019                                                std::chrono::seconds session_lifetime) :
00020    Session_Manager_SQL(std::make_shared<Sqlite3_Database>(db_filename),
00021                        passphrase,
00022                        rng,
00023                        max_sessions,
00024                        session_lifetime)
00025    {}
00026 
00027 }
00028 
00029 }