Project

General

Profile

Bug #2080 ยป patch.patch

Alex Afanasyev, 10/20/2014 09:00 AM

View differences:

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
    (1-1/1)