Project

General

Profile

Actions

Bug #3803

open

Default-constructed Link is encoded with ContentType==BLOB if no delegation is added

Added by Muhammad Hosain Abdullahi Sabet over 7 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Base
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Snippet to reproduce:

// g++ -std=c++14 -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()
{
  ndn::Link link;
  link.setName("/link-name");
  ndn::KeyChain keyChain;
  keyChain.sign(link);
  std::cout << link;
}

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

Actions

Also available in: Atom PDF