Actions
Bug #2639
closedInMemoryStorage does not accept data if it is not wireEncoded
Start date:
03/12/2015
Due date:
% Done:
100%
Estimated time:
0.50 h
Description
Create a data packet and set the signature (e.g. manually set the SHA256 digest), put it into InMemoryStorage.
Expect: find data in the InMemoryStorage
Actual: throw Error due to no wireFormat
util::InMemoryStorageFifo ims;
auto data = make_shared<Data>("/1");
ndn::SignatureSha256WithRsa fakeSignature;
fakeSignature.setValue(makeEmptyBlock(tlv::SignatureValue));
data->setSignature(fakeSignature);
ims.insert(*data); // throw error: Full name requested, but Data packet does not have wire format
Actions