Compile with the ndn-cxx version 0.6.2
Change-Id: If474dafb9638d7308f566b1264aa5704ba88baac
diff --git a/tests/unit-tests/challenge-pin.t.cpp b/tests/unit-tests/challenge-pin.t.cpp
index 633dd8f..2b7e377 100644
--- a/tests/unit-tests/challenge-pin.t.cpp
+++ b/tests/unit-tests/challenge-pin.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2017, Regents of the University of California.
+ * Copyright (c) 2017-2018, Regents of the University of California.
*
* This file is part of ndncert, a certificate management system based on NDN.
*
@@ -18,8 +18,8 @@
* See AUTHORS.md for complete list of ndncert authors and contributors.
*/
-#include "identity-management-fixture.hpp"
#include "challenge-module/challenge-pin.hpp"
+#include "identity-management-fixture.hpp"
namespace ndn {
namespace ndncert {
@@ -87,7 +87,7 @@
std::stringstream ss;
boost::property_tree::write_json(ss, infoJson);
std::string jsonString = ss.str();
- Block jsonContent = makeStringBlock(ndn::tlv::NameComponent, ss.str());
+ Block jsonContent = makeStringBlock(ndn::tlv::GenericNameComponent, ss.str());
Name interestName("/ndn/site1/CA");
interestName.append("_VALIDATE").append("Fake-Request-ID").append("PIN").append(jsonContent);
@@ -122,7 +122,7 @@
std::stringstream ss;
boost::property_tree::write_json(ss, infoJson);
std::string jsonString = ss.str();
- Block jsonContent = makeStringBlock(ndn::tlv::NameComponent, ss.str());
+ Block jsonContent = makeStringBlock(ndn::tlv::GenericNameComponent, ss.str());
Name interestName("/ndn/site1/CA");
interestName.append("_VALIDATE").append("Fake-Request-ID").append("PIN").append(jsonContent);