summaryrefslogtreecommitdiff
path: root/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
diff options
context:
space:
mode:
authorTommy Chiu <tommychiu@google.com>2021-04-08 11:07:48 +0800
committerTommy Chiu <tommychiu@google.com>2021-04-08 11:12:32 +0800
commitf00d8f1c0a4a1d4b59dd6f77edbe43b3e7ef6beb (patch)
tree0756ef07c0319d67ec0d23d45d5aadbb2f61a73c /security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
parent471017034f1f7e0ba3b2a2f99e9b66c83507b114 (diff)
vts: Correct the TagType when verify_attestation_record
TAG_BOOT_PATCHLEVEL and TAG_VENDOR_PATCHLEVEL should be interger type. Fixed: 184796337 Test: VtsAidlKeyMintTargetTest not abort Change-Id: Iccd6ac93910d44c0a02b798210909c404a98d8ab
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 ce6f67a84a..c4c0bf1e07 100644
--- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
+++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
@@ -897,7 +897,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, "-");