blob: db37397a86aa6a02310223796bc22bde7d5037ca [file] [log] [blame]
Zhiyi Zhang91c846b2017-04-12 14:16:31 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesaventob48bbda2020-07-27 19:41:37 -04002/*
3 * Copyright (c) 2017-2020, Regents of the University of California.
Zhiyi Zhang91c846b2017-04-12 14:16:31 -07004 *
5 * This file is part of ndncert, a certificate management system based on NDN.
6 *
7 * ndncert is free software: you can redistribute it and/or modify it under the terms
8 * of the GNU General Public License as published by the Free Software Foundation, either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * ndncert is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
14 *
15 * You should have received copies of the GNU General Public License along with
16 * ndncert, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * See AUTHORS.md for complete list of ndncert authors and contributors.
19 */
20
Zhiyi Zhangb041d442020-10-22 21:57:11 -070021#include "detail/ca-sqlite.hpp"
Davide Pesaventob48bbda2020-07-27 19:41:37 -040022
Zhiyi Zhanga749f442020-09-29 17:19:51 -070023#include <sqlite3.h>
Zhiyi Zhanga749f442020-09-29 17:19:51 -070024#include <boost/filesystem.hpp>
tylerliua7bea662020-10-08 18:51:02 -070025#include <ndn-cxx/security/validation-policy.hpp>
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070026#include <ndn-cxx/util/sqlite3-statement.hpp>
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070027
28namespace ndn {
29namespace ndncert {
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -070030namespace ca {
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070031
Zhiyi Zhang59812232020-10-12 13:11:35 -070032using namespace ndn::util;
Davide Pesaventob48bbda2020-07-27 19:41:37 -040033const std::string CaSqlite::STORAGE_TYPE = "ca-storage-sqlite3";
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070034
35NDNCERT_REGISTER_CA_STORAGE(CaSqlite);
36
Zhiyi Zhang59812232020-10-12 13:11:35 -070037std::string
38convertJson2String(const JsonSection& json)
39{
40 std::stringstream ss;
41 boost::property_tree::write_json(ss, json);
42 return ss.str();
43}
44
45JsonSection
46convertString2Json(const std::string& jsonContent)
47{
48 std::istringstream ss(jsonContent);
49 JsonSection json;
50 boost::property_tree::json_parser::read_json(ss, json);
51 return json;
52}
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070053
54static const std::string INITIALIZATION = R"_DBTEXT_(
55CREATE TABLE IF NOT EXISTS
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -070056 RequestStates(
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070057 id INTEGER PRIMARY KEY,
Zhiyi Zhang8fdb36b2020-10-18 11:58:51 -070058 request_id BLOB NOT NULL,
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070059 ca_name BLOB NOT NULL,
tylerliu182bc532020-09-25 01:54:45 -070060 request_type INTEGER NOT NULL,
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070061 status INTEGER NOT NULL,
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070062 cert_request BLOB NOT NULL,
63 challenge_type TEXT,
Zhiyi Zhanga749f442020-09-29 17:19:51 -070064 challenge_status TEXT,
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070065 challenge_tp TEXT,
66 remaining_tries INTEGER,
Zhiyi Zhang5f749a22019-06-12 17:02:33 -070067 remaining_time INTEGER,
tylerliu8e170d62020-09-30 01:31:53 -070068 challenge_secrets TEXT,
Zhiyi Zhang222810b2020-10-16 21:50:35 -070069 encryption_key BLOB NOT NULL,
70 aes_block_counter INTEGER
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070071 );
72CREATE UNIQUE INDEX IF NOT EXISTS
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -070073 RequestStateIdIndex ON RequestStates(request_id);
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070074)_DBTEXT_";
75
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -070076CaSqlite::CaSqlite(const Name& caName, const std::string& path)
Zhiyi Zhanga749f442020-09-29 17:19:51 -070077 : CaStorage()
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070078{
79 // Determine the path of sqlite db
80 boost::filesystem::path dbDir;
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -070081 if (!path.empty()) {
82 dbDir = boost::filesystem::path(path);
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070083 }
84 else {
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -070085 std::string dbName = caName.toUri();
86 std::replace(dbName.begin(), dbName.end(), '/', '_');
87 dbName += ".db";
88 if (getenv("HOME") != nullptr) {
89 dbDir = boost::filesystem::path(getenv("HOME")) / ".ndncert";
90 }
91 else {
92 dbDir = boost::filesystem::current_path() / ".ndncert";
93 }
94 boost::filesystem::create_directories(dbDir);
95 dbDir /= dbName;
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070096 }
Zhiyi Zhang91c846b2017-04-12 14:16:31 -070097
98 // open and initialize database
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -070099 int result = sqlite3_open_v2(dbDir.c_str(), &m_database,
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700100 SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
101#ifdef NDN_CXX_DISABLE_SQLITE3_FS_LOCKING
102 "unix-dotfile"
103#else
104 nullptr
105#endif
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700106 );
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700107 if (result != SQLITE_OK)
tylerliu41c11532020-10-10 16:14:45 -0700108 NDN_THROW(std::runtime_error("CaSqlite DB cannot be opened/created: " + dbDir.string()));
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700109
110 // initialize database specific tables
111 char* errorMessage = nullptr;
Davide Pesaventob48bbda2020-07-27 19:41:37 -0400112 result = sqlite3_exec(m_database, INITIALIZATION.data(),
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700113 nullptr, nullptr, &errorMessage);
114 if (result != SQLITE_OK && errorMessage != nullptr) {
115 sqlite3_free(errorMessage);
tylerliu41c11532020-10-10 16:14:45 -0700116 NDN_THROW(std::runtime_error("CaSqlite DB cannot be initialized"));
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700117 }
118}
119
120CaSqlite::~CaSqlite()
121{
122 sqlite3_close(m_database);
123}
124
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700125RequestState
Zhiyi Zhangc9ada1b2020-10-29 19:13:15 -0700126CaSqlite::getRequest(const RequestId& requestId)
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700127{
128 Sqlite3Statement statement(m_database,
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700129 R"_SQLTEXT_(SELECT id, ca_name, status,
130 challenge_status, cert_request,
131 challenge_type, challenge_secrets,
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700132 challenge_tp, remaining_tries, remaining_time,
133 request_type, encryption_key, aes_block_counter
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700134 FROM RequestStates where request_id = ?)_SQLTEXT_");
Zhiyi Zhang8fdb36b2020-10-18 11:58:51 -0700135 statement.bind(1, requestId.data(), requestId.size(), SQLITE_TRANSIENT);
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700136
137 if (statement.step() == SQLITE_ROW) {
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700138 Name caName(statement.getBlock(1));
139 auto status = static_cast<Status>(statement.getInt(2));
140 auto challengeStatus = statement.getString(3);
tylerliua7bea662020-10-08 18:51:02 -0700141 security::Certificate cert(statement.getBlock(4));
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700142 auto challengeType = statement.getString(5);
143 auto challengeSecrets = statement.getString(6);
144 auto challengeTp = statement.getString(7);
145 auto remainingTries = statement.getInt(8);
146 auto remainingTime = statement.getInt(9);
147 auto requestType = static_cast<RequestType>(statement.getInt(10));
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700148 std::array<uint8_t, 16> encryptionKey;
149 std::memcpy(encryptionKey.data(), statement.getBlob(11), statement.getSize(11));
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700150 auto aesCounter = statement.getInt(12);
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700151 if (challengeType != "") {
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700152 return RequestState(caName, requestId, requestType, status, cert,
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700153 challengeType, challengeStatus, time::fromIsoString(challengeTp),
154 remainingTries, time::seconds(remainingTime),
155 convertString2Json(challengeSecrets), std::move(encryptionKey), aesCounter);
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700156 }
157 else {
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700158 return RequestState(caName, requestId, requestType, status, cert, std::move(encryptionKey));
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700159 }
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700160 }
161 else {
Zhiyi Zhang8fdb36b2020-10-18 11:58:51 -0700162 NDN_THROW(std::runtime_error("Request " + toHex(requestId.data(), requestId.size()) + " cannot be fetched from database"));
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700163 }
164}
165
166void
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700167CaSqlite::addRequest(const RequestState& request)
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700168{
Zhiyi Zhangb8bbc642020-09-29 14:08:26 -0700169 Sqlite3Statement statement(
170 m_database,
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700171 R"_SQLTEXT_(INSERT OR ABORT INTO RequestStates (request_id, ca_name, status, request_type,
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -0700172 cert_request, challenge_type, challenge_status, challenge_secrets,
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700173 challenge_tp, remaining_tries, remaining_time, encryption_key, aes_block_counter)
174 values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))_SQLTEXT_");
tylerliu7b9185c2020-11-24 12:15:18 -0800175 statement.bind(1, request.requestId.data(), request.requestId.size(), SQLITE_TRANSIENT);
176 statement.bind(2, request.caPrefix.wireEncode(), SQLITE_TRANSIENT);
177 statement.bind(3, static_cast<int>(request.status));
178 statement.bind(4, static_cast<int>(request.requestType));
179 statement.bind(5, request.cert.wireEncode(), SQLITE_TRANSIENT);
180 statement.bind(12, request.encryptionKey.data(), request.encryptionKey.size(), SQLITE_TRANSIENT);
181 statement.bind(13, request.aesBlockCounter);
182 if (request.challengeState) {
183 statement.bind(6, request.challengeType, SQLITE_TRANSIENT);
184 statement.bind(7, request.challengeState->challengeStatus, SQLITE_TRANSIENT);
185 statement.bind(8, convertJson2String(request.challengeState->secrets),
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700186 SQLITE_TRANSIENT);
tylerliu7b9185c2020-11-24 12:15:18 -0800187 statement.bind(9, time::toIsoString(request.challengeState->timestamp), SQLITE_TRANSIENT);
188 statement.bind(10, request.challengeState->remainingTries);
189 statement.bind(11, request.challengeState->remainingTime.count());
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700190 }
Zhiyi Zhangb8bbc642020-09-29 14:08:26 -0700191 if (statement.step() != SQLITE_DONE) {
tylerliu7b9185c2020-11-24 12:15:18 -0800192 NDN_THROW(std::runtime_error("Request " + toHex(request.requestId.data(), request.requestId.size()) + " cannot be added to database"));
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700193 }
194}
195
196void
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700197CaSqlite::updateRequest(const RequestState& request)
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700198{
199 Sqlite3Statement statement(m_database,
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700200 R"_SQLTEXT_(UPDATE RequestStates
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700201 SET status = ?, challenge_type = ?, challenge_status = ?, challenge_secrets = ?,
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700202 challenge_tp = ?, remaining_tries = ?, remaining_time = ?, aes_block_counter = ?
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700203 WHERE request_id = ?)_SQLTEXT_");
tylerliu7b9185c2020-11-24 12:15:18 -0800204 statement.bind(1, static_cast<int>(request.status));
205 statement.bind(2, request.challengeType, SQLITE_TRANSIENT);
206 if (request.challengeState) {
207 statement.bind(3, request.challengeState->challengeStatus, SQLITE_TRANSIENT);
208 statement.bind(4, convertJson2String(request.challengeState->secrets), SQLITE_TRANSIENT);
209 statement.bind(5, time::toIsoString(request.challengeState->timestamp), SQLITE_TRANSIENT);
210 statement.bind(6, request.challengeState->remainingTries);
211 statement.bind(7, request.challengeState->remainingTime.count());
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700212 }
213 else {
214 statement.bind(3, "", SQLITE_TRANSIENT);
215 statement.bind(4, "", SQLITE_TRANSIENT);
216 statement.bind(5, "", SQLITE_TRANSIENT);
217 statement.bind(6, 0);
218 statement.bind(7, 0);
219 }
tylerliu7b9185c2020-11-24 12:15:18 -0800220 statement.bind(8, request.aesBlockCounter);
221 statement.bind(9, request.requestId.data(), request.requestId.size(), SQLITE_TRANSIENT);
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700222
223 if (statement.step() != SQLITE_DONE) {
224 addRequest(request);
225 }
226}
227
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700228std::list<RequestState>
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700229CaSqlite::listAllRequests()
230{
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700231 std::list<RequestState> result;
tylerliu182bc532020-09-25 01:54:45 -0700232 Sqlite3Statement statement(m_database, R"_SQLTEXT_(SELECT id, request_id, ca_name, status,
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -0700233 challenge_status, cert_request, challenge_type, challenge_secrets,
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700234 challenge_tp, remaining_tries, remaining_time, request_type,
235 encryption_key, aes_block_counter
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700236 FROM RequestStates)_SQLTEXT_");
Davide Pesaventob48bbda2020-07-27 19:41:37 -0400237 while (statement.step() == SQLITE_ROW) {
Zhiyi Zhangc9ada1b2020-10-29 19:13:15 -0700238 RequestId requestId;
Zhiyi Zhang8fdb36b2020-10-18 11:58:51 -0700239 std::memcpy(requestId.data(), statement.getBlob(1), statement.getSize(1));
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700240 Name caName(statement.getBlock(2));
Zhiyi Zhangc87d52b2020-09-28 22:07:18 -0700241 auto status = static_cast<Status>(statement.getInt(3));
242 auto challengeStatus = statement.getString(4);
tylerliua7bea662020-10-08 18:51:02 -0700243 security::Certificate cert(statement.getBlock(5));
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -0700244 auto challengeType = statement.getString(6);
245 auto challengeSecrets = statement.getString(7);
246 auto challengeTp = statement.getString(8);
247 auto remainingTries = statement.getInt(9);
248 auto remainingTime = statement.getInt(10);
249 auto requestType = static_cast<RequestType>(statement.getInt(11));
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700250 std::array<uint8_t, 16> encryptionKey;
251 std::memcpy(encryptionKey.data(), statement.getBlob(12), statement.getSize(12));
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700252 auto aesBlockCounter = statement.getInt(13);
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700253 if (challengeType != "") {
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700254 result.push_back(RequestState(caName, requestId, requestType, status, cert,
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700255 challengeType, challengeStatus, time::fromIsoString(challengeTp),
256 remainingTries, time::seconds(remainingTime),
257 convertString2Json(challengeSecrets),
258 std::move(encryptionKey), aesBlockCounter));
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700259 }
260 else {
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700261 result.push_back(RequestState(caName, requestId, requestType,
262 status, cert, std::move(encryptionKey), aesBlockCounter));
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700263 }
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700264 }
265 return result;
266}
267
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700268std::list<RequestState>
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700269CaSqlite::listAllRequests(const Name& caName)
270{
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700271 std::list<RequestState> result;
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700272 Sqlite3Statement statement(m_database,
tylerliu182bc532020-09-25 01:54:45 -0700273 R"_SQLTEXT_(SELECT id, request_id, ca_name, status,
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -0700274 challenge_status, cert_request, challenge_type, challenge_secrets,
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700275 challenge_tp, remaining_tries, remaining_time, request_type,
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700276 encryption_key, aes_block_counter
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700277 FROM RequestStates WHERE ca_name = ?)_SQLTEXT_");
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700278 statement.bind(1, caName.wireEncode(), SQLITE_TRANSIENT);
279
Davide Pesaventob48bbda2020-07-27 19:41:37 -0400280 while (statement.step() == SQLITE_ROW) {
Zhiyi Zhangc9ada1b2020-10-29 19:13:15 -0700281 RequestId requestId;
Zhiyi Zhang8fdb36b2020-10-18 11:58:51 -0700282 std::memcpy(requestId.data(), statement.getBlob(1), statement.getSize(1));
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700283 Name caName(statement.getBlock(2));
Zhiyi Zhangc87d52b2020-09-28 22:07:18 -0700284 auto status = static_cast<Status>(statement.getInt(3));
285 auto challengeStatus = statement.getString(4);
tylerliua7bea662020-10-08 18:51:02 -0700286 security::Certificate cert(statement.getBlock(5));
Zhiyi Zhangd1d9f5a2020-10-05 18:04:23 -0700287 auto challengeType = statement.getString(6);
288 auto challengeSecrets = statement.getString(7);
289 auto challengeTp = statement.getString(8);
290 auto remainingTries = statement.getInt(9);
291 auto remainingTime = statement.getInt(10);
292 auto requestType = static_cast<RequestType>(statement.getInt(11));
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700293 std::array<uint8_t, 16> encryptionKey;
294 std::memcpy(encryptionKey.data(), statement.getBlob(12), statement.getSize(12));
Zhiyi Zhang222810b2020-10-16 21:50:35 -0700295 auto aesBlockCounter = statement.getInt(13);
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700296 if (challengeType != "") {
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700297 result.push_back(RequestState(caName, requestId, requestType, status, cert,
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700298 challengeType, challengeStatus, time::fromIsoString(challengeTp),
299 remainingTries, time::seconds(remainingTime),
300 convertString2Json(challengeSecrets),
301 std::move(encryptionKey), aesBlockCounter));
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700302 }
303 else {
Zhiyi Zhang1f9551b2020-10-30 10:30:43 -0700304 result.push_back(RequestState(caName, requestId, requestType, status,
305 cert, std::move(encryptionKey), aesBlockCounter));
Zhiyi Zhanga749f442020-09-29 17:19:51 -0700306 }
Zhiyi Zhangae123bf2017-04-14 12:24:53 -0700307 }
308 return result;
309}
310
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700311void
Zhiyi Zhangc9ada1b2020-10-29 19:13:15 -0700312CaSqlite::deleteRequest(const RequestId& requestId)
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700313{
314 Sqlite3Statement statement(m_database,
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700315 R"_SQLTEXT_(DELETE FROM RequestStates WHERE request_id = ?)_SQLTEXT_");
Zhiyi Zhang8fdb36b2020-10-18 11:58:51 -0700316 statement.bind(1, requestId.data(), requestId.size(), SQLITE_TRANSIENT);
Zhiyi Zhang91c846b2017-04-12 14:16:31 -0700317 statement.step();
318}
319
Zhiyi Zhang32d4b4e2020-10-28 22:10:49 -0700320} // namespace ca
Zhiyi Zhange4891b72020-10-10 15:11:57 -0700321} // namespace ndncert
322} // namespace ndn