Project

General

Profile

Actions

Bug #3435

closed

DummyClientFace must allow custom KeyChain to be supplied during construction

Added by Alex Afanasyev over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
01/26/2016
Due date:
% Done:

100%

Estimated time:

Description

Some test cases customize KeyChain (e.g., specialized TPM). DummyClientFace creates an instance of a "default" KeyChain, which potentially causes errors like this:

../src/security/key-chain.cpp:264: fatal error: in "void ndn::security::KeyChain::initialize(const std::string &, const std::string &, bool)": boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<ndn::security::KeyChain::MismatchError> >: TPM locator supplied does not match TPM locator in PIB: tpm-file: != tpm-osxkeychain:

The current workaround is to customize $HOME for the test case(s) and create client.conf in $HOME/.ndn/

Actions

Also available in: Atom PDF