Avoid using deprecated ndn-cxx functions
Change-Id: I51e0abcb7454e31efbcc779a17d2c490802108ec
diff --git a/src/mgmt/management-tool.cpp b/src/mgmt/management-tool.cpp
index 3832561..3119840 100644
--- a/src/mgmt/management-tool.cpp
+++ b/src/mgmt/management-tool.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.
@@ -447,7 +447,7 @@
os << "; rrset=" << rrset.getLabel().toUri()
<< " type=" << rrset.getType().toUri()
<< " version=" << rrset.getVersion().toUri()
- << " signed-by=" << data.getSignature().getKeyLocator().getName().toUri()
+ << " signed-by=" << data.getKeyLocator()->getName().toUri()
<< std::endl;
}
@@ -494,7 +494,7 @@
os.width();
os << "; content-type=" << re.getContentType()
<< " version=" << rrset.getVersion().toUri()
- << " signed-by=" << data.getSignature().getKeyLocator().getName().toUri();
+ << " signed-by=" << data.getKeyLocator()->getName().toUri();
os << std::endl;
if (printRaw && (re.getContentType() == NDNS_BLOB