switch to ndn-cxx KeyChain v2
refs #4089
Change-Id: I32bc19db156de49275b681ef67f684b76631d50b
diff --git a/tests/core/manager-base.t.cpp b/tests/core/manager-base.t.cpp
index 2137a01..db3a8ec 100644
--- a/tests/core/manager-base.t.cpp
+++ b/tests/core/manager-base.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2016, Regents of the University of California,
+ * Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -27,6 +27,9 @@
#include "manager-common-fixture.hpp"
#include <ndn-cxx/security/key-chain.hpp>
+#include <ndn-cxx/security/pib/identity.hpp>
+#include <ndn-cxx/security/pib/key.hpp>
+#include <ndn-cxx/security/pib/pib.hpp>
#include <ndn-cxx/mgmt/nfd/control-command.hpp>
namespace nfd {
@@ -60,7 +63,7 @@
{
}
- virtual ndn::mgmt::Authorization
+ ndn::mgmt::Authorization
makeAuthorization(const std::string& verb) override
{
return [this] (const Name& prefix, const Interest& interest,
@@ -145,7 +148,7 @@
requesterName = "";
m_manager.extractRequester(*signedCommand, testAccept);
- auto keyLocator = m_keyChain.getDefaultCertificateNameForIdentity(m_identityName).getPrefix(-1);
+ auto keyLocator = m_keyChain.getPib().getIdentity(m_identityName).getDefaultKey().getName();
BOOST_CHECK_EQUAL(requesterName, keyLocator.toUri());
}