Use InterestSigner instead of the deprecated CommandInterestSigner
Change-Id: I8861c0706c6ee2ab1e1e8828ab2aad2ccfdecf6e
diff --git a/tests/integrated/test-basic-command-insert-delete.cpp b/tests/integrated/test-basic-command-insert-delete.cpp
index cc40734..03e9a54 100644
--- a/tests/integrated/test-basic-command-insert-delete.cpp
+++ b/tests/integrated/test-basic-command-insert-delete.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2019, Regents of the University of California.
+ * Copyright (c) 2014-2021, Regents of the University of California.
*
* This file is part of NDN repo-ng (Next generation of NDN repository).
* See AUTHORS.md for complete list of repo-ng authors and contributors.
@@ -27,7 +27,7 @@
#include "../repo-storage-fixture.hpp"
#include "../dataset-fixtures.hpp"
-#include <ndn-cxx/security/command-interest-signer.hpp>
+#include <ndn-cxx/security/interest-signer.hpp>
#include <ndn-cxx/security/signing-helpers.hpp>
#include <ndn-cxx/util/random.hpp>
#include <ndn-cxx/util/time.hpp>
@@ -110,7 +110,7 @@
Face deleteFace;
std::map<Name, ndn::scheduler::EventId> insertEvents;
std::map<Name, Name> deleteNamePairs;
- ndn::security::CommandInterestSigner signer;
+ ndn::security::InterestSigner signer;
};
template<class T> void
diff --git a/tools/ndnputfile.cpp b/tools/ndnputfile.cpp
index 94fffa2..78d4b8a 100644
--- a/tools/ndnputfile.cpp
+++ b/tools/ndnputfile.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2019, Regents of the University of California.
+ * Copyright (c) 2014-2021, Regents of the University of California.
*
* This file is part of NDN repo-ng (Next generation of NDN repository).
* See AUTHORS.md for complete list of repo-ng authors and contributors.
@@ -21,7 +21,7 @@
#include "../src/repo-command-response.hpp"
#include <ndn-cxx/face.hpp>
-#include <ndn-cxx/security/command-interest-signer.hpp>
+#include <ndn-cxx/security/interest-signer.hpp>
#include <ndn-cxx/security/key-chain.hpp>
#include <ndn-cxx/security/signing-helpers.hpp>
#include <ndn-cxx/util/scheduler.hpp>
@@ -157,7 +157,7 @@
using DataContainer = std::map<uint64_t, shared_ptr<ndn::Data>>;
DataContainer m_data;
- ndn::security::CommandInterestSigner m_cmdSigner;
+ ndn::security::InterestSigner m_cmdSigner;
};
void
@@ -214,11 +214,11 @@
if (isVerbose)
std::cerr << "setInterestFilter for " << m_dataPrefix << std::endl;
+
m_face.setInterestFilter(m_dataPrefix,
isSingle ?
- bind(&NdnPutFile::onSingleInterest, this, _1, _2)
- :
- bind(&NdnPutFile::onInterest, this, _1, _2),
+ bind(&NdnPutFile::onSingleInterest, this, _1, _2) :
+ bind(&NdnPutFile::onInterest, this, _1, _2),
bind(&NdnPutFile::onRegisterSuccess, this, _1),
bind(&NdnPutFile::onRegisterFailed, this, _1, _2));