Rename library and update build system
Change-Id: I78c6a412c5e2181e58649c0e0aa2aa2f97da16a1
diff --git a/src/consumer-db.hpp b/src/consumer-db.hpp
index 8500b67..29230dd 100644
--- a/src/consumer-db.hpp
+++ b/src/consumer-db.hpp
@@ -2,30 +2,30 @@
/**
* Copyright (c) 2014-2018, Regents of the University of California
*
- * This file is part of ndn-group-encrypt (Group-based Encryption Protocol for NDN).
- * See AUTHORS.md for complete list of ndn-group-encrypt authors and contributors.
+ * This file is part of NAC (Name-Based Access Control for NDN).
+ * See AUTHORS.md for complete list of NAC authors and contributors.
*
- * ndn-group-encrypt is free software: you can redistribute it and/or modify it under the terms
+ * NAC is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
- * ndn-group-encrypt is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ * NAC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
- * ndn-group-encrypt, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
+ * NAC, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
*
* @author Zhiyi Zhang <dreamerbarrychang@gmail.com>
*/
-#ifndef NDN_GEP_CONSUMER_DB_HPP
-#define NDN_GEP_CONSUMER_DB_HPP
+#ifndef NDN_NAC_CONSUMER_DB_HPP
+#define NDN_NAC_CONSUMER_DB_HPP
#include "common.hpp"
namespace ndn {
-namespace gep {
+namespace nac {
/**
* @brief ConsumerDB is a class to manage decryption keys for consumer.
@@ -36,11 +36,7 @@
class Error : public std::runtime_error
{
public:
- explicit
- Error(const std::string& what)
- : std::runtime_error(what)
- {
- }
+ using std::runtime_error::runtime_error;
};
public:
@@ -79,7 +75,7 @@
unique_ptr<Impl> m_impl;
};
-} // namespace gep
+} // namespace nac
} // namespace ndn
-#endif // NDN_GEP_CONSUMER_DB_HPP
+#endif // NDN_NAC_CONSUMER_DB_HPP