commit | fddc15e1ec5d82a44d8ddb8d38a1db80edb9315d | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Fri Jun 08 06:11:43 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Fri Jun 08 06:11:43 2018 -0700 |
tree | edd653c67c296caa75b135faa25e516abbb0df53 | |
parent | de6ddb3ebafaf637065fc5d6be57108a8e80ac48 [diff] | |
parent | 03a2fcd89fbd1ebb89722f133a77a0215635faee [diff] |
Merge "Fix bug in VTS attestation cert verification." am: 636650bd84 am: 03a2fcd89f Change-Id: I1270383112047ab90d87bee4a483a91bb9093090
diff --git a/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp b/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp index 3a181a9..77fd6f7 100644 --- a/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp +++ b/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp
@@ -294,7 +294,7 @@ } bool verify_chain(const hidl_vec<hidl_vec<uint8_t>>& chain) { - for (size_t i = 0; i < chain.size() - 1; ++i) { + for (size_t i = 0; i < chain.size(); ++i) { X509_Ptr key_cert(parse_cert_blob(chain[i])); X509_Ptr signing_cert; if (i < chain.size() - 1) {