rib: Avoid deprecated `nfd::CommandOptions::setSigningIdentity` method
Change-Id: Id98538d96368c67ac1db939e0ad0fd43ec0c6ab9
Refs: #2893
diff --git a/rib/remote-registrator.cpp b/rib/remote-registrator.cpp
index ad8d62d..aa45269 100644
--- a/rib/remote-registrator.cpp
+++ b/rib/remote-registrator.cpp
@@ -26,6 +26,7 @@
#include "remote-registrator.hpp"
#include "core/logger.hpp"
#include "core/scheduler.hpp"
+#include <ndn-cxx/security/signing-helpers.hpp>
namespace nfd {
namespace rib {
@@ -196,7 +197,7 @@
CommandOptions options = m_commandOptions;
startRegistration(parameters.setName(prefixForRegistration),
- options.setSigningIdentity(identity.first),
+ options.setSigningInfo(signingByIdentity(identity.first)),
m_nRetries);
}
@@ -268,7 +269,7 @@
CommandOptions options = m_commandOptions;
startUnregistration(parameters.setName(prefixForRegistration).unsetCost(),
- options.setSigningIdentity(identity.first),
+ options.setSigningInfo(signingByIdentity(identity.first)),
m_nRetries);
}
@@ -427,7 +428,7 @@
ControlParameters parameters = m_controlParameters;
CommandOptions options = m_commandOptions;
startRegistration(parameters.setName(entry.first),
- options.setSigningIdentity(entry.first),
+ options.setSigningInfo(signingByIdentity(entry.first)),
m_nRetries);
}
}