switch to ndn-cxx KeyChain v2
refs #4089
Change-Id: I32bc19db156de49275b681ef67f684b76631d50b
diff --git a/daemon/mgmt/command-authenticator.hpp b/daemon/mgmt/command-authenticator.hpp
index fe2e0b9..0924e9b 100644
--- a/daemon/mgmt/command-authenticator.hpp
+++ b/daemon/mgmt/command-authenticator.hpp
@@ -28,8 +28,7 @@
#include "core/config-file.hpp"
#include <ndn-cxx/mgmt/dispatcher.hpp>
-#include <ndn-cxx/security/command-interest-validator.hpp>
-#include <ndn-cxx/security/v1/public-key.hpp>
+#include <ndn-cxx/security/v2/certificate.hpp>
namespace nfd {
@@ -68,11 +67,9 @@
struct AuthorizedCerts
{
bool allowAny = false;
- std::unordered_map<Name, ndn::security::v1::PublicKey> certs; ///< keyName => publicKey
+ std::unordered_map<Name, ndn::security::v2::Certificate> certs; ///< keyName => cert
};
std::unordered_map<std::string, AuthorizedCerts> m_moduleAuth; ///< module => certs
-
- ndn::security::CommandInterestValidator m_validator;
};
} // namespace nfd