Adjust includes for the updated locations of ndn-cxx security headers
Change-Id: I4b527581a97f706e348096b4d77c8f13559c9224
diff --git a/tests/identity-management-fixture.hpp b/tests/identity-management-fixture.hpp
index 96cbc7f..d76e3fa 100644
--- a/tests/identity-management-fixture.hpp
+++ b/tests/identity-management-fixture.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
@@ -20,9 +20,11 @@
#ifndef NAC_TESTS_IDENTITY_MANAGEMENT_FIXTURE_HPP
#define NAC_TESTS_IDENTITY_MANAGEMENT_FIXTURE_HPP
+#include "common.hpp"
+
#include "boost-test.hpp"
-#include <ndn-cxx/security/v2/key-chain.hpp>
+#include <ndn-cxx/security/key-chain.hpp>
#include <ndn-cxx/security/signing-helpers.hpp>
#include <vector>
@@ -48,8 +50,8 @@
* @brief Add identity @p identityName
* @return name of the created self-signed certificate
*/
- security::Identity
- addIdentity(const Name& identityName, const KeyParams& params = security::v2::KeyChain::getDefaultKeyParams());
+ Identity
+ addIdentity(const Name& identityName, const KeyParams& params = KeyChain::getDefaultKeyParams());
/**
* @brief Save identity certificate to a file
@@ -58,7 +60,7 @@
* @return whether successful
*/
bool
- saveIdentityCertificate(const security::Identity& identity, const std::string& filename);
+ saveIdentityCertificate(const Identity& identity, const std::string& filename);
/**
* @brief Issue a certificate for \p subIdentityName signed by \p issuer
@@ -70,20 +72,20 @@
* @return the sub identity
*/
security::Identity
- addSubCertificate(const Name& subIdentityName, const security::Identity& issuer,
- const KeyParams& params = security::v2::KeyChain::getDefaultKeyParams());
+ addSubCertificate(const Name& subIdentityName, const Identity& issuer,
+ const KeyParams& params = KeyChain::getDefaultKeyParams());
/**
* @brief Add a self-signed certificate to @p key with issuer ID @p issuer
*/
- security::v2::Certificate
- addCertificate(const security::Key& key, const std::string& issuer);
+ Certificate
+ addCertificate(const Key& key, const std::string& issuer);
bool
saveCertToFile(const Data& obj, const std::string& filename);
protected:
- security::v2::KeyChain m_keyChain;
+ KeyChain m_keyChain;
std::set<Name> m_identities;
std::set<std::string> m_certFiles;
};