summaryrefslogtreecommitdiff
path: root/identity/CredentialData.cpp
diff options
context:
space:
mode:
authorMax Bires <jbires@google.com>2021-03-11 00:44:06 -0800
committerMax Bires <jbires@google.com>2021-04-05 17:51:43 -0700
commit5bb33f46386d49cbe95e9a9ac1993625b526fb42 (patch)
tree2a79563cf45a3e8c8243e2ea2a7219afd103a4d5 /identity/CredentialData.cpp
parent80ca190d33203d60aaf94ecda337127c313f7fea (diff)
downloadsecurity-5bb33f46386d49cbe95e9a9ac1993625b526fb42.tar.gz
Changing libcppbor dependency
This change replaces libcppbor with libcppbor_external as part of the effort to remove the partial libcppbor copy that lives in hardware/interfaces. Bug: 182445123 Test: It builds Change-Id: I9c96cdf807979ecf806c80edd3cec9c443294c22
Diffstat (limited to 'identity/CredentialData.cpp')
-rw-r--r--identity/CredentialData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/identity/CredentialData.cpp b/identity/CredentialData.cpp
index d95c1ace..74b995d8 100644
--- a/identity/CredentialData.cpp
+++ b/identity/CredentialData.cpp
@@ -273,7 +273,7 @@ bool CredentialData::loadFromDisk() {
}
for (size_t n = 0; n < map->size(); n++) {
- auto [keyItem, valueItem] = (*map)[n];
+ auto& [keyItem, valueItem] = (*map)[n];
const cppbor::Tstr* tstr = keyItem->asTstr();
if (tstr == nullptr) {
LOG(ERROR) << "Key item in top-level map is not a tstr";
@@ -325,7 +325,7 @@ bool CredentialData::loadFromDisk() {
return false;
}
for (size_t m = 0; m < map->size(); m++) {
- auto [ecKeyItem, ecValueItem] = (*map)[m];
+ auto& [ecKeyItem, ecValueItem] = (*map)[m];
const cppbor::Tstr* ecTstr = ecKeyItem->asTstr();
if (ecTstr == nullptr) {
LOG(ERROR) << "Key item in encryptedChunks map is not a tstr";