summaryrefslogtreecommitdiffstats
path: root/comm/third_party/botan/src/lib/x509/certstor_sqlite3/certstor_sqlite.cpp
blob: b7c066483d248187c100913b54d1c974ef8fe84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Certificate Store in SQL
* (C) 2016 Kai Michaelis, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/

#include <botan/certstor_sqlite.h>
#include <botan/sqlite3.h>

namespace Botan {

Certificate_Store_In_SQLite::Certificate_Store_In_SQLite(const std::string& db_path,
                                                         const std::string& passwd,
                                                         RandomNumberGenerator& rng,
                                                         const std::string& table_prefix) :
   Certificate_Store_In_SQL(std::make_shared<Sqlite3_Database>(db_path), passwd, rng, table_prefix)
   {}
}