Project

General

Profile

Bug #2639

Updated by Yingdi Yu over 8 years ago

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 
 exist in InMemoryStorage

Back