update
Change-Id: I57f0ec460e07dae51dd6b25f14772096807a20b4
diff --git a/tools/ndncert-client.cpp b/tools/ndncert-client.cpp
index 18520c8..224ea51 100644
--- a/tools/ndncert-client.cpp
+++ b/tools/ndncert-client.cpp
@@ -289,9 +289,9 @@
static void
selectCaProfile(std::string configFilePath)
{
- RequesterCaCache caCache;
+ ProfileStorage profileStorage;
try {
- caCache.load(configFilePath);
+ profileStorage.load(configFilePath);
}
catch (const std::exception& e) {
std::cerr << "Cannot load the configuration file: " << e.what() << std::endl;
@@ -300,7 +300,7 @@
size_t count = 0;
std::cerr << "***************************************\n"
<< "Step " << nStep++ << ": CA SELECTION" << std::endl;
- for (auto item : caCache.m_caItems) {
+ for (auto item : profileStorage.m_caItems) {
std::cerr << "> Index: " << count++ << std::endl
<< ">> CA prefix:" << item.m_caPrefix << std::endl
<< ">> Introduction: " << item.m_caInfo << std::endl;
@@ -341,7 +341,7 @@
std::cerr << "Your input is not an existing index. Exit" << std::endl;
return;
}
- auto itemIterator = caCache.m_caItems.cbegin();
+ auto itemIterator = profileStorage.m_caItems.cbegin();
std::advance(itemIterator, caIndex);
auto targetCaItem = *itemIterator;
runProbe(targetCaItem);