Bug #2080 ยป patch.patch
| src/management/nfd-controller.hpp | ||
|---|---|---|
|
const IdentityCertificate& certificate,
|
||
|
const time::milliseconds& timeout = getDefaultCommandTimeout())
|
||
|
{
|
||
|
start<Command>(parameters, onSuccess, onFailure,
|
||
|
bind(static_cast<void(KeyChain::*)(Interest&,const Name&)>(&KeyChain::sign<Interest>),
|
||
|
&m_keyChain, _1, cref(certificate.getName())),
|
||
|
timeout);
|
||
|
if (certificate.getName().empty()) {
|
||
|
start<Command>(parameters, onSuccess, onFailure, timeout);
|
||
|
}
|
||
|
else {
|
||
|
start<Command>(parameters, onSuccess, onFailure,
|
||
|
bind(static_cast<void(KeyChain::*)(Interest&,const Name&)>(&KeyChain::sign<Interest>),
|
||
|
&m_keyChain, _1, cref(certificate.getName())),
|
||
|
timeout);
|
||
|
}
|
||
|
}
|
||
|
/** \brief start command execution
|
||