Adjust includes for the updated locations of ndn-cxx security headers
Change-Id: I01787a91cdb70b7136f3c4e9e646e68888e6d064
diff --git a/src/security/certificate-store.cpp b/src/security/certificate-store.cpp
index aa3ae32..11db5e3 100644
--- a/src/security/certificate-store.cpp
+++ b/src/security/certificate-store.cpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2014-2020, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
@@ -17,7 +17,7 @@
*
* You should have received a copy of the GNU General Public License along with
* NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
- **/
+ */
#include "certificate-store.hpp"
#include "conf-parameter.hpp"
@@ -40,7 +40,7 @@
this, _1)))
{
for (const auto& x: confParam.getIdCerts()) {
- auto idCert = ndn::io::load<ndn::security::v2::Certificate>(x);
+ auto idCert = ndn::io::load<ndn::security::Certificate>(x);
insert(*idCert);
}
@@ -48,13 +48,13 @@
}
void
-CertificateStore::insert(const ndn::security::v2::Certificate& certificate)
+CertificateStore::insert(const ndn::security::Certificate& certificate)
{
m_certificates[certificate.getKeyName()] = certificate;
NLSR_LOG_TRACE("Certificate inserted successfully");
}
-const ndn::security::v2::Certificate*
+const ndn::security::Certificate*
CertificateStore::find(const ndn::Name& keyName) const
{
auto it = m_certificates.find(keyName);
@@ -147,7 +147,7 @@
if (cert) {
insert(*cert);
NLSR_LOG_TRACE(*cert);
- ndn::Name certName = ndn::security::v2::extractKeyNameFromCertName(cert->getName());
+ ndn::Name certName = ndn::security::extractKeyNameFromCertName(cert->getName());
NLSR_LOG_TRACE("Setting interest filter for: " << certName);
setInterestFilter(certName);
diff --git a/src/security/certificate-store.hpp b/src/security/certificate-store.hpp
index 99b88bf..95437c5 100644
--- a/src/security/certificate-store.hpp
+++ b/src/security/certificate-store.hpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2014-2020, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
@@ -17,7 +17,7 @@
*
* You should have received a copy of the GNU General Public License along with
* NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
- **/
+ */
#ifndef NLSR_CERTIFICATE_STORE_HPP
#define NLSR_CERTIFICATE_STORE_HPP
@@ -28,7 +28,7 @@
#include <ndn-cxx/interest.hpp>
#include <ndn-cxx/mgmt/nfd/controller.hpp>
-#include <ndn-cxx/security/v2/certificate.hpp>
+#include <ndn-cxx/security/certificate.hpp>
#include <ndn-cxx/security/validator-config.hpp>
namespace nlsr {
@@ -49,7 +49,7 @@
CertificateStore(ndn::Face& face, ConfParameter& confParam, Lsdb& lsdb);
void
- insert(const ndn::security::v2::Certificate& certificate);
+ insert(const ndn::security::Certificate& certificate);
/*! \brief Find a certificate
*
@@ -59,7 +59,7 @@
* checks the cache of certificates it has already fetched. If none
* can be found, it will return an null pointer.
*/
- const ndn::security::v2::Certificate*
+ const ndn::security::Certificate*
find(const ndn::Name& keyName) const;
/*! \brief Retrieves the chain of certificates from Validator's cache and
@@ -92,7 +92,7 @@
registrationFailed(const ndn::Name& name);
private:
- typedef std::map<ndn::Name, ndn::security::v2::Certificate> CertMap;
+ typedef std::map<ndn::Name, ndn::security::Certificate> CertMap;
CertMap m_certificates;
ndn::Face& m_face;
ConfParameter& m_confParam;