diff options
Diffstat (limited to 'keymaster/4.0/vts/functional/KeymasterHidlTest.h')
-rw-r--r-- | keymaster/4.0/vts/functional/KeymasterHidlTest.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keymaster/4.0/vts/functional/KeymasterHidlTest.h b/keymaster/4.0/vts/functional/KeymasterHidlTest.h index ad30aa7792..67829ec93a 100644 --- a/keymaster/4.0/vts/functional/KeymasterHidlTest.h +++ b/keymaster/4.0/vts/functional/KeymasterHidlTest.h @@ -22,7 +22,9 @@ #include <hidl/GtestPrinter.h> #include <hidl/ServiceManagement.h> +#include <keymasterV4_0/attestation_record.h> #include <keymasterV4_0/authorization_set.h> +#include <keymasterV4_0/openssl_utils.h> namespace android { namespace hardware { @@ -241,6 +243,11 @@ class KeymasterHidlTest : public ::testing::TestWithParam<std::string> { testing::ValuesIn(KeymasterHidlTest::build_params()), \ android::hardware::PrintInstanceNameToString) +X509* parse_cert_blob(const hidl_vec<uint8_t>& blob); +// Extract attestation record from cert. Returned object is still part of cert; don't free it +// separately. +ASN1_OCTET_STRING* get_attestation_record(X509* certificate); + } // namespace test } // namespace V4_0 } // namespace keymaster |