security: Merging SecPolicy into Validator (previously Verifier)
Change-Id: I469fc8f823406cb217bf85248d38d241c32f31f0
diff --git a/src/security/validator-null.hpp b/src/security/validator-null.hpp
new file mode 100644
index 0000000..90b5293
--- /dev/null
+++ b/src/security/validator-null.hpp
@@ -0,0 +1,42 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+/**
+ * Copyright (C) 2013 Regents of the University of California.
+ * @author: Yingdi Yu <yingdi@cs.ucla.edu>
+ * @author: Jeff Thompson <jefft0@remap.ucla.edu>
+ * See COPYING for copyright and distribution information.
+ */
+
+#ifndef NDN_VALIDATOR_NULL_HPP
+#define NDN_VALIDATOR_NULL_HPP
+
+#include "validator.hpp"
+
+namespace ndn {
+
+class ValidatorNull : public Validator {
+protected:
+
+ virtual
+ ~ValidatorNull()
+ {}
+
+ virtual void
+ checkPolicy (shared_ptr<const Data> data,
+ int stepCount,
+ const OnDataValidated &onValidated,
+ const OnDataValidationFailed &onValidationFailed,
+ std::vector<shared_ptr<ValidationRequest> > &nextSteps)
+ { onValidated(data); }
+
+ virtual void
+ checkPolicy (shared_ptr<const Interest> interest,
+ int stepCount,
+ const OnInterestValidated &onValidated,
+ const OnInterestValidationFailed &onValidationFailed,
+ std::vector<shared_ptr<ValidationRequest> > &nextSteps)
+ { onValidated(interest); }
+};
+
+}
+
+#endif