Merge "credstore: Never pass an empty challenge."

This commit is contained in:
Treehugger Robot 2020-06-05 13:36:47 +00:00 committed by Gerrit Code Review
commit e3421680c8

View file

@ -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;
}