Project

General

Profile

Actions

Bug #2639

closed

InMemoryStorage does not accept data if it is not wireEncoded

Added by Yingdi Yu over 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Utils
Target version:
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

Also available in: Atom PDF