diff options
author | David Zeuthen <zeuthen@google.com> | 2020-06-03 17:24:37 -0400 |
---|---|---|
committer | David Zeuthen <zeuthen@google.com> | 2020-06-05 09:55:27 -0400 |
commit | bbb7f80377770ee800fafddf0365ad3917bf2227 (patch) | |
tree | f69048502671da2866294054a01e1f9bd30454a2 | |
parent | 37dedb0f5221f63c5c1d8dbcc8c62149a672bcb1 (diff) | |
download | security-bbb7f80377770ee800fafddf0365ad3917bf2227.tar.gz |
credstore: Never pass an empty challenge.
Bug: 156911917
Bug: 158107945
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Merged-In: Ia274fcbaabb0c0ec7c884070eb30737dc236c064
Change-Id: I51c450c1ac3f09ec1ce1d1e5eb43fe5c9eeb47c0
-rw-r--r-- | identity/WritableCredential.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/WritableCredential.cpp b/identity/WritableCredential.cpp index cb2d6ffd..a932dcf5 100644 --- a/identity/WritableCredential.cpp +++ b/identity/WritableCredential.cpp @@ -149,7 +149,7 @@ Status WritableCredential::personalize(const vector<AccessControlProfileParcel>& accessControlProfiles, const vector<EntryNamespaceParcel>& entryNamespaces, int64_t secureUserId, vector<uint8_t>* _aidl_return) { - Status ensureStatus = ensureAttestationCertificateExists({}); + Status ensureStatus = ensureAttestationCertificateExists({0x00}); // Challenge cannot be empty. if (!ensureStatus.isOk()) { return ensureStatus; } |