blob: e49ae75b50719cd240090c4cd60090aee122da2c [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
Jeff Thompson25b4e612013-10-10 16:03:24 -07009#include <ndn-cpp/security/policy/no-verify-policy-manager.hpp>
Jeff Thompson3f3cfd32013-09-27 11:46:52 -070010
11using namespace std;
12using namespace ndn::ptr_lib;
13
14namespace ndn {
15
16NoVerifyPolicyManager::~NoVerifyPolicyManager()
17{
18}
19
20bool
21NoVerifyPolicyManager::skipVerifyAndTrust(const Data& data)
22{
23 return true;
24}
25
26bool
27NoVerifyPolicyManager::requireVerify(const Data& data)
28{
29 return false;
30}
31
32shared_ptr<ValidationRequest>
33NoVerifyPolicyManager::checkVerificationPolicy
34 (const shared_ptr<Data>& data, const int& stepCount, const OnVerified& onVerified, const OnVerifyFailed& onVerifyFailed)
35{
36 onVerified(data);
37 return shared_ptr<ValidationRequest>();
38}
39
40bool
41NoVerifyPolicyManager::checkSigningPolicy(const Name& dataName, const Name& certificateName)
42{
43 return true;
44}
45
46Name
47NoVerifyPolicyManager::inferSigningIdentity(const Name& dataName)
48{
49 return Name();
50}
51
52}