security: Allow reloading ValidationPolicyConfig / ValidatorConfig
Change-Id: Idba53c0b4e2cf645d3d0e6c76c57a1b54995462a
Refs: #4261
diff --git a/src/security/v2/validator.hpp b/src/security/v2/validator.hpp
index 6dfe8a8..14e9c7f 100644
--- a/src/security/v2/validator.hpp
+++ b/src/security/v2/validator.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).
@@ -137,6 +137,12 @@
time::nanoseconds refreshPeriod, bool isDir = false);
/**
+ * @brief remove any previously loaded static or dynamic trust anchor
+ */
+ void
+ resetAnchors();
+
+ /**
* @brief Cache verified @p cert a period of time (1 hour)
*
* @todo Add ability to customize time period
@@ -144,6 +150,12 @@
void
cacheVerifiedCertificate(Certificate&& cert);
+ /**
+ * @brief Remove any cached verified certificates
+ */
+ void
+ resetVerifiedCertificates();
+
private: // Common validator operations
/**
* @brief Recursive validation of the certificate in the certification chain