summaryrefslogtreecommitdiff
path: root/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-04-13 13:06:58 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-04-13 13:06:58 +0000
commitd997c72959aeaa3d612532c90f00e866d361fb2f (patch)
tree519a80bd7d3e98ed7b082e36ad4f7f18d108cec5 /security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
parentc9945ab2b45a663d8875c709087a3dfcdaa68c95 (diff)
parentf00d8f1c0a4a1d4b59dd6f77edbe43b3e7ef6beb (diff)
Merge "vts: Correct the TagType when verify_attestation_record"
Diffstat (limited to 'security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp')
-rw-r--r--security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
index ec2194454f..3da048449b 100644
--- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
+++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
@@ -903,7 +903,7 @@ bool verify_attestation_record(const string& challenge, //
if (att_hw_enforced[i].tag == TAG_BOOT_PATCHLEVEL ||
att_hw_enforced[i].tag == TAG_VENDOR_PATCHLEVEL) {
std::string date =
- std::to_string(att_hw_enforced[i].value.get<KeyParameterValue::dateTime>());
+ std::to_string(att_hw_enforced[i].value.get<KeyParameterValue::integer>());
// strptime seems to require delimiters, but the tag value will
// be YYYYMMDD
date.insert(6, "-");