Adjust includes for the updated locations of ndn-cxx security headers
Change-Id: I4b527581a97f706e348096b4d77c8f13559c9224
diff --git a/tools/ndn-nac/ndn-nac.hpp b/tools/ndn-nac/ndn-nac.hpp
index 3f70bbd..5c8fd85 100644
--- a/tools/ndn-nac/ndn-nac.hpp
+++ b/tools/ndn-nac/ndn-nac.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2018, Regents of the University of California
+ * Copyright (c) 2014-2020, Regents of the University of California
*
* NAC library is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -44,14 +44,14 @@
int
nac_add_member(int argc, char** argv);
-inline security::v2::Certificate
+inline Certificate
loadCertificate(const std::string& fileName)
{
- shared_ptr<security::v2::Certificate> cert;
+ shared_ptr<Certificate> cert;
if (fileName == "-")
- cert = io::load<security::v2::Certificate>(std::cin);
+ cert = io::load<Certificate>(std::cin);
else
- cert = io::load<security::v2::Certificate>(fileName);
+ cert = io::load<Certificate>(fileName);
if (cert == nullptr) {
BOOST_THROW_EXCEPTION(std::runtime_error("Cannot load certificate from " + fileName));