Remove more use of deprecated code
Change-Id: I4322ab4aedb9287acf2eb608f96b7eefbc5f7dba
Refs: #3988
diff --git a/src/security/certificate-store.hpp b/src/security/certificate-store.hpp
index a45f0c4..b591fe7 100644
--- a/src/security/certificate-store.hpp
+++ b/src/security/certificate-store.hpp
@@ -26,7 +26,7 @@
#include "../test-access-control.hpp"
#include <ndn-cxx/interest.hpp>
-#include <ndn-cxx/security/identity-certificate.hpp>
+#include <ndn-cxx/security/v1/identity-certificate.hpp>
namespace nlsr {
namespace security {
diff --git a/tests-integrated/test-validator.cpp b/tests-integrated/test-validator.cpp
index 2fd729d..406ef0c 100644
--- a/tests-integrated/test-validator.cpp
+++ b/tests-integrated/test-validator.cpp
@@ -219,7 +219,7 @@
BOOST_FIXTURE_TEST_CASE(CertificateStorage, ValidatorFixture)
{
- std::vector<ndn::CertificateSubjectDescription> subjectDescription;
+ std::vector<ndn::security::v1::CertificateSubjectDescription> subjectDescription;
// Create an operator identity
ndn::Name opIdentity("/TestValidator/operator/NLSR");
diff --git a/tests/update/test-prefix-update-processor.cpp b/tests/update/test-prefix-update-processor.cpp
index bf4f8f4..f21269b 100644
--- a/tests/update/test-prefix-update-processor.cpp
+++ b/tests/update/test-prefix-update-processor.cpp
@@ -146,8 +146,8 @@
opCert->setNotBefore(time::system_clock::now() - time::days(1));
opCert->setNotAfter(time::system_clock::now() + time::days(1));
opCert->setPublicKeyInfo(*pubKey);
- opCert->addSubjectDescription(CertificateSubjectDescription(ndn::oid::ATTRIBUTE_NAME,
- keyName.toUri()));
+ opCert->addSubjectDescription(ndn::security::v1::CertificateSubjectDescription(ndn::oid::ATTRIBUTE_NAME,
+ keyName.toUri()));
opCert->encode();
keyChain.signByIdentity(*opCert, siteIdentity);