blob: 3a4575608a58d4c47e43497da87c048e8bb924ba [file] [log] [blame]
Jeff Thompson3f3cfd32013-09-27 11:46:52 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/**
3 * Copyright (C) 2013 Regents of the University of California.
4 * @author: Yingdi Yu <yingdi@cs.ucla.edu>
5 * @author: Jeff Thompson <jefft0@remap.ucla.edu>
6 * See COPYING for copyright and distribution information.
7 */
8
Alexander Afanasyev09c613f2014-01-29 00:23:58 -08009#include "security/sec-policy-no-verify.hpp"
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070010
11using namespace std;
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070012
13namespace ndn {
14
Yingdi Yu4f324632014-01-15 18:10:03 -080015SecPolicyNoVerify::~SecPolicyNoVerify()
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070016{
17}
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070018
Jeff Thompsonce115762013-12-18 14:59:56 -080019ptr_lib::shared_ptr<ValidationRequest>
Yingdi Yu4f324632014-01-15 18:10:03 -080020SecPolicyNoVerify::checkVerificationPolicy
Yingdi Yu4270f202014-01-28 14:19:16 -080021 (const ptr_lib::shared_ptr<const Data>& data, int stepCount, const OnVerified& onVerified, const OnVerifyFailed& onVerifyFailed)
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070022{
Yingdi Yue07e3392014-01-28 10:29:27 -080023 onVerified();
Jeff Thompsonce115762013-12-18 14:59:56 -080024 return ptr_lib::shared_ptr<ValidationRequest>();
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070025}
26
Yingdi Yue07e3392014-01-28 10:29:27 -080027ptr_lib::shared_ptr<ValidationRequest>
28SecPolicyNoVerify::checkVerificationPolicy
Yingdi Yu4270f202014-01-28 14:19:16 -080029 (const ptr_lib::shared_ptr<const Interest>& interest, int stepCount, const OnVerified& onVerified, const OnVerifyFailed& onVerifyFailed)
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070030{
Yingdi Yue07e3392014-01-28 10:29:27 -080031 onVerified();
32 return ptr_lib::shared_ptr<ValidationRequest>();
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070033}
34
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070035
36}