blob: c2f7866bc4e34402eb6dc0b3a8a2500b25ea173f [file] [log] [blame]
/* -*- 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.
*/
#include <ndn-cpp/security/sec-policy-no-verify.hpp>
using namespace std;
namespace ndn {
SecPolicyNoVerify::~SecPolicyNoVerify()
{
}
bool
SecPolicyNoVerify::skipVerifyAndTrust(const Data& data)
{
return true;
}
bool
SecPolicyNoVerify::requireVerify(const Data& data)
{
return false;
}
ptr_lib::shared_ptr<ValidationRequest>
SecPolicyNoVerify::checkVerificationPolicy
(const ptr_lib::shared_ptr<Data>& data, int stepCount, const OnVerified& onVerified, const OnVerifyFailed& onVerifyFailed)
{
onVerified(data);
return ptr_lib::shared_ptr<ValidationRequest>();
}
bool
SecPolicyNoVerify::checkSigningPolicy(const Name& dataName, const Name& certificateName)
{
return true;
}
Name
SecPolicyNoVerify::inferSigningIdentity(const Name& dataName)
{
return Name();
}
}