Project

General

Profile

Bug #3803

Updated by Junxiao Shi about 8 years ago

Snippet to reproduce: 

 ``` 
 // g++ -o x -std=c++0x x.cpp $(pkg-config --cflags --libs libndn-cxx) 
 #include <ndn-cxx/link.hpp> 
 #include <ndn-cxx/security/key-chain.hpp> 

 int main() 
 { 
   auto link = std::make_shared<ndn::Link>("/link-name"); 
   ndn::KeyChain keyChain; 
   keyChain.signWithSha256(*link); 
   std::cout << *link; 
   return 0; 
 } 
 ``` 

 Expected: ContentType==LINK 
 Actual: an exception should be thrown by `Link::wireEncode` ContentType==BLOB

Back