Project

General

Profile

Bug #3803

Updated by Davide Pesavento almost 2 years ago

Snippet to reproduce: 

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

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

 Expected: ContentType==LINK, or an exception is thrown 
 Actual: ContentType==BLOB

Back