diff options
author | David Zeuthen <zeuthen@google.com> | 2020-05-08 10:03:28 -0400 |
---|---|---|
committer | David Zeuthen <zeuthen@google.com> | 2020-05-08 11:33:23 -0400 |
commit | a8ed82cbb4bf5e1cec902066f2bad0c46cdd0066 (patch) | |
tree | d2a4fe99fb8d628630817b9489f39b7e3430e191 /identity/aidl/default/service.cpp | |
parent | 6174f00cc611ea76aed781ac3ae6e8c2e8941c3f (diff) |
Identity Credential: Add method to accept verification token.
This is to facilitate HAL implementations using a TA existing in a
different environment than where auth tokens are minted. This method
will be used by credstore in a companion CL.
This modifies version 2 of the Identity Credential API (which was
never been released) to add a new method and creates version 2 of the
Keymaster types-only AIDL API to include the new VerificationToken
parcelable and SecurityLevel enum.
Bug: 156076333
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Change-Id: I7d05413a9ec70225ce419079f3cc9daf026cf744
Diffstat (limited to 'identity/aidl/default/service.cpp')
-rw-r--r-- | identity/aidl/default/service.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/identity/aidl/default/service.cpp b/identity/aidl/default/service.cpp index f05c615001..bf95df523a 100644 --- a/identity/aidl/default/service.cpp +++ b/identity/aidl/default/service.cpp @@ -22,9 +22,14 @@ #include "IdentityCredentialStore.h" +using ::android::base::InitLogging; +using ::android::base::StderrLogger; + using aidl::android::hardware::identity::IdentityCredentialStore; -int main() { +int main(int /*argc*/, char* argv[]) { + InitLogging(argv, StderrLogger); + ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr<IdentityCredentialStore> store = ndk::SharedRefBase::make<IdentityCredentialStore>(); |