Avoid using deprecated ndn-cxx functions
Change-Id: I51e0abcb7454e31efbcc779a17d2c490802108ec
diff --git a/tests/unit/daemon/name-server.cpp b/tests/unit/daemon/name-server.cpp
index dae6685..76daa2f 100644
--- a/tests/unit/daemon/name-server.cpp
+++ b/tests/unit/daemon/name-server.cpp
@@ -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.
*
* This file is part of NDNS (Named Data Networking Domain Name Service).
* See AUTHORS.md for complete list of NDNS authors and contributors.
@@ -285,7 +285,7 @@
m_keyChain.setDefaultCertificate(dsk, dskCert);
NDNS_LOG_TRACE("KeyChain: add cert: " << dskCert.getName() << ". KeyLocator: "
- << dskCert.getSignature().getKeyLocator().getName());
+ << dskCert.getKeyLocator()->getName());
Rrset rrset(&m_test);
Name label = dskCert.getName().getPrefix(-2).getSubName(m_test.getName().size() + 1);
@@ -324,7 +324,7 @@
bool hasDataBack = false;
// no data back, since the Update cannot pass verification
- face.onSendData.connectSingleShot([&] (const Data& data) {
+ face.onSendData.connectSingleShot([&] (const Data&) {
hasDataBack = true;
BOOST_FAIL("UNEXPECTED");
});