code review fix
Change-Id: Ie616543094aaa31d596980ba7a3cef05de4351fc
diff --git a/tools/ndncert-ca-server.cpp b/tools/ndncert-ca-server.cpp
index 7c055d5..1ab3130 100644
--- a/tools/ndncert-ca-server.cpp
+++ b/tools/ndncert-ca-server.cpp
@@ -137,7 +137,7 @@
});
cachedCertificates[profileData.getName()] = profileData;
face.setInterestFilter(
- InterestFilter(ca.getCaConf().m_caProfile.m_caPrefix),
+ InterestFilter(ca.getCaConf().caProfile.m_caPrefix),
[&](const InterestFilter&, const Interest& interest) {
auto search = cachedCertificates.find(interest.getName());
if (search != cachedCertificates.end()) {
diff --git a/tools/ndncert-client.cpp b/tools/ndncert-client.cpp
index d31273d..4c13e48 100644
--- a/tools/ndncert-client.cpp
+++ b/tools/ndncert-client.cpp
@@ -129,13 +129,13 @@
std::cerr << "Error when decoding challenge step: " << e.what() << std::endl;
exit(1);
}
- if (requesterState->m_status == Status::SUCCESS) {
+ if (requesterState->status == Status::SUCCESS) {
std::cerr << "Certificate has already been issued, downloading certificate..." << std::endl;
face.expressInterest(*Requester::genCertFetchInterest(*requesterState), bind(&certFetchCb, _2),
bind(&onNackCb), bind(&timeoutCb));
return;
}
- runChallenge(requesterState->m_challengeType);
+ runChallenge(requesterState->challengeType);
}
static void