**breaking change**: Switch Face and related classes to v2::KeyChain
security::v2::KeyChain is now exposed as ndn::KeyChain, which should
ensure that dependent code can be mostly compiled. However, expect code
that explicitly uses the old KeyChain interface to be broken.
Change-Id: I7330d0250d92f3f0f2570ab6d0214ab3dfdd18cc
Refs: #3098
diff --git a/src/util/dummy-client-face.cpp b/src/util/dummy-client-face.cpp
index af1f702..79586c6 100644
--- a/src/util/dummy-client-face.cpp
+++ b/src/util/dummy-client-face.cpp
@@ -86,13 +86,13 @@
DummyClientFace::DummyClientFace(const Options& options/* = DummyClientFace::DEFAULT_OPTIONS*/)
: Face(make_shared<DummyClientFace::Transport>())
- , m_internalKeyChain(new security::v1::KeyChain)
+ , m_internalKeyChain(new KeyChain)
, m_keyChain(*m_internalKeyChain)
{
this->construct(options);
}
-DummyClientFace::DummyClientFace(security::v1::KeyChain& keyChain,
+DummyClientFace::DummyClientFace(KeyChain& keyChain,
const Options& options/* = DummyClientFace::DEFAULT_OPTIONS*/)
: Face(make_shared<DummyClientFace::Transport>(), keyChain)
, m_keyChain(keyChain)
@@ -103,13 +103,13 @@
DummyClientFace::DummyClientFace(boost::asio::io_service& ioService,
const Options& options/* = DummyClientFace::DEFAULT_OPTIONS*/)
: Face(make_shared<DummyClientFace::Transport>(), ioService)
- , m_internalKeyChain(new security::v1::KeyChain)
+ , m_internalKeyChain(new KeyChain)
, m_keyChain(*m_internalKeyChain)
{
this->construct(options);
}
-DummyClientFace::DummyClientFace(boost::asio::io_service& ioService, security::v1::KeyChain& keyChain,
+DummyClientFace::DummyClientFace(boost::asio::io_service& ioService, KeyChain& keyChain,
const Options& options/* = DummyClientFace::DEFAULT_OPTIONS*/)
: Face(make_shared<DummyClientFace::Transport>(), ioService, keyChain)
, m_keyChain(keyChain)
diff --git a/src/util/dummy-client-face.hpp b/src/util/dummy-client-face.hpp
index cbf22f1..630913c 100644
--- a/src/util/dummy-client-face.hpp
+++ b/src/util/dummy-client-face.hpp
@@ -80,7 +80,7 @@
/** \brief Create a dummy face with internal IO service and the specified KeyChain
*/
explicit
- DummyClientFace(security::v1::KeyChain& keyChain, const Options& options = Options());
+ DummyClientFace(KeyChain& keyChain, const Options& options = Options());
/** \brief Create a dummy face with the provided IO service
*/
@@ -89,7 +89,7 @@
/** \brief Create a dummy face with the provided IO service and the specified KeyChain
*/
- DummyClientFace(boost::asio::io_service& ioService, security::v1::KeyChain& keyChain,
+ DummyClientFace(boost::asio::io_service& ioService, KeyChain& keyChain,
const Options& options = Options());
/** \brief cause the Face to receive an interest
@@ -166,8 +166,8 @@
Signal<DummyClientFace, lp::Nack> onSendNack;
private:
- std::unique_ptr<security::v1::KeyChain> m_internalKeyChain;
- security::v1::KeyChain& m_keyChain;
+ std::unique_ptr<KeyChain> m_internalKeyChain;
+ KeyChain& m_keyChain;
std::function<void(time::milliseconds)> m_processEventsOverride;
};
diff --git a/src/util/notification-stream.hpp b/src/util/notification-stream.hpp
index 212f7e5..1c7887e 100644
--- a/src/util/notification-stream.hpp
+++ b/src/util/notification-stream.hpp
@@ -30,7 +30,7 @@
#include "../name.hpp"
#include "../face.hpp"
-#include "../security/v1/key-chain.hpp"
+#include "../security/v2/key-chain.hpp"
#include "concepts.hpp"