security: Move KeyChain to security::v1 namespace and deprecated it
Change-Id: Ic4b6915ca15998a83b410f3f8fac027f797ee7ca
Refs: #3098
diff --git a/tools/ndnsec/import.hpp b/tools/ndnsec/import.hpp
index 3a42c1b..41cf602 100644
--- a/tools/ndnsec/import.hpp
+++ b/tools/ndnsec/import.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2015 Regents of the University of California.
+ * Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -79,13 +79,13 @@
{
try
{
- KeyChain keyChain;
+ ndn::security::v1::KeyChain keyChain;
- shared_ptr<SecuredBag> securedBag;
+ shared_ptr<ndn::security::v1::SecuredBag> securedBag;
if (input == "-")
- securedBag = io::load<SecuredBag>(std::cin);
+ securedBag = io::load<ndn::security::v1::SecuredBag>(std::cin);
else
- securedBag = io::load<SecuredBag>(input);
+ securedBag = io::load<ndn::security::v1::SecuredBag>(input);
int count = 3;
while (!getPassword(importPassword, "Passphrase for the private key: "))