Update validation related codes to security v2
Change-Id: I5467b87092820666c04f22623f0f1665ce9a1194
diff --git a/src/daemon/db-mgr.hpp b/src/daemon/db-mgr.hpp
index 5c4e179..9e79223 100644
--- a/src/daemon/db-mgr.hpp
+++ b/src/daemon/db-mgr.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014, Regents of the University of California.
+/*
+ * Copyright (c) 2014-2017, Regents of the University of California.
*
* This file is part of NDNS (Named Data Networking Domain Name Service).
* See AUTHORS.md for complete list of NDNS authors and contributors.
@@ -33,7 +33,7 @@
#define DEFINE_ERROR(ErrorName, Base) \
class ErrorName : public Base \
{ \
- public: \
+public: \
explicit \
ErrorName(const std::string& what) \
: Base(what) \
@@ -105,6 +105,20 @@
insert(Zone& zone);
/**
+ * @brief set zoneInfo by key-value
+ */
+ void
+ setZoneInfo(Zone& zone,
+ const std::string& key,
+ const Block& value);
+
+ /**
+ * @brief get zoneInfo
+ */
+ std::map<std::string, Block>
+ getZoneInfo(Zone& zone);
+
+ /**
* @brief lookup the zone by name, fill the m_id and m_ttl
* @post whatever the previous id is
* @return true if the record exist