security: renaming methods
1. renaming Verifier::policies to Verifier::policy
2. appending SecTpm related methods with "InTpm"
Change-Id: I3790947d3f236e8d56fd52eaefc6e2bbaea92385
diff --git a/src/security/verifier.cpp b/src/security/verifier.cpp
index 992d1f0..67a9273 100644
--- a/src/security/verifier.cpp
+++ b/src/security/verifier.cpp
@@ -72,7 +72,7 @@
Verifier::verifyData
(const ptr_lib::shared_ptr<Data>& data, const OnVerified& onVerified, const OnVerifyFailed& onVerifyFailed, int stepCount)
{
- if (policies().requireVerify(*data)) {
+ if (policy().requireVerify(*data)) {
ptr_lib::shared_ptr<ValidationRequest> nextStep = policy_->checkVerificationPolicy
(data, stepCount, onVerified, onVerifyFailed);
if (static_cast<bool>(nextStep))
@@ -86,7 +86,7 @@
bind(&Verifier::onCertificateInterestTimeout, this, _1, nextStep->retry_, onVerifyFailed, data, nextStep));
}
}
- else if (policies().skipVerifyAndTrust(*data))
+ else if (policy().skipVerifyAndTrust(*data))
onVerified(data);
else
onVerifyFailed(data);