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

Commit d4c2e5d8 authored by Janis Danisevskis's avatar Janis Danisevskis Committed by android-build-merger
Browse files

Fix expected attestation version.

am: 538b7d85

Change-Id: I5ba0326f7e2f1547a1e08c2f44055a8938414ae4
parents 15ec4837 538b7d85
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -925,11 +925,7 @@ bool verify_attestation_record(const string& challenge, const string& app_id,
                                       &att_tee_enforced,                //
                                       &att_unique_id));

    if (att_keymaster_version == 3) {
        EXPECT_EQ(2U, att_attestation_version);
    } else {
        EXPECT_EQ(1U, att_attestation_version);
    }
    EXPECT_TRUE(att_attestation_version == 1 || att_attestation_version == 2);

    expected_sw_enforced.push_back(TAG_ATTESTATION_APPLICATION_ID,
                                   HidlBuf(app_id));