Jeff Thompson | 3f3cfd3 | 2013-09-27 11:46:52 -0700 | [diff] [blame^] | 1 | /* -*- 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 | |
| 9 | #include "no-verify-policy-manager.hpp" |
| 10 | |
| 11 | using namespace std; |
| 12 | using namespace ndn::ptr_lib; |
| 13 | |
| 14 | namespace ndn { |
| 15 | |
| 16 | NoVerifyPolicyManager::~NoVerifyPolicyManager() |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | bool |
| 21 | NoVerifyPolicyManager::skipVerifyAndTrust(const Data& data) |
| 22 | { |
| 23 | return true; |
| 24 | } |
| 25 | |
| 26 | bool |
| 27 | NoVerifyPolicyManager::requireVerify(const Data& data) |
| 28 | { |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | shared_ptr<ValidationRequest> |
| 33 | NoVerifyPolicyManager::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 | |
| 40 | bool |
| 41 | NoVerifyPolicyManager::checkSigningPolicy(const Name& dataName, const Name& certificateName) |
| 42 | { |
| 43 | return true; |
| 44 | } |
| 45 | |
| 46 | Name |
| 47 | NoVerifyPolicyManager::inferSigningIdentity(const Name& dataName) |
| 48 | { |
| 49 | return Name(); |
| 50 | } |
| 51 | |
| 52 | } |