ca-config uses name instead of ClientCaItem
Change-Id: Ie4e71bf167c661e13038b356c7efb95816da26d5
diff --git a/src/ca-config.cpp b/src/ca-config.cpp
index 0f4edc8..06b5c68 100644
--- a/src/ca-config.cpp
+++ b/src/ca-config.cpp
@@ -88,14 +88,13 @@
return result;
}
-std::list<ClientCaItem>
+std::list<Name>
CaConfig::parseRelatedCaList(const JsonSection& section)
{
- std::list<ClientCaItem> result;
+ std::list<Name> result;
auto it = section.begin();
for (; it != section.end(); it++) {
- ClientCaItem item;
- item.m_caName = Name(it->second.get<std::string>("ca-prefix"));
+ Name item(it->second.get<std::string>("ca-prefix"));
result.push_back(item);
}
return result;