Project

General

Profile

Bug #3803

Updated by Junxiao Shi over 7 years ago

Snippet to reproduce: 

 ``` 
 // g++ -std=c++11 -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.sign(*link); keyChain.signWithSha256(*link); 
   std::cout << *link; 
   return 0; 
 } 
 ``` 

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

Back