security: Allow reloading ValidationPolicyConfig / ValidatorConfig
Change-Id: Idba53c0b4e2cf645d3d0e6c76c57a1b54995462a
Refs: #4261
diff --git a/src/security/v2/trust-anchor-container.hpp b/src/security/v2/trust-anchor-container.hpp
index 49e4999..f935571 100644
--- a/src/security/v2/trust-anchor-container.hpp
+++ b/src/security/v2/trust-anchor-container.hpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -96,6 +96,12 @@
time::nanoseconds refreshPeriod, bool isDir = false);
/**
+ * @brief Remove all static or dynamic anchors
+ */
+ void
+ clear();
+
+ /**
* @brief Search for certificate across all groups (longest prefix match)
* @param keyName Key name prefix for searching the certificate.
* @return The found certificate, nullptr if not found.
@@ -155,6 +161,9 @@
void
remove(const Name& certName) final;
+
+ void
+ clear();
};
using GroupContainer = boost::multi_index::multi_index_container<