Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f00d8f1c authored by Tommy Chiu's avatar Tommy Chiu
Browse files

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
parent 47101703
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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, "-");