aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-03-20 19:09:13 -0500
committerTao Bao2017-03-21 00:13:56 -0500
commit76fdb2419bfec0e747db2530379484a3dc571f34 (patch)
treeaba97506271d30aad9c52d438caf0f83fd084dad /verifier.h
parent110102f37e76c2630ff510dfc1734478a2d81206 (diff)
downloadplatform-bootable-recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.gz
platform-bootable-recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.xz
platform-bootable-recovery-76fdb2419bfec0e747db2530379484a3dc571f34.zip
verify_file: Add constness to a few addresses.
We should not touch any data while verifying packages (or parsing the in-memory ASN.1 structures). Test: mmma bootable/recovery Test: recovery_component_test passes. Test: recovery_unit_test passes. Change-Id: Ie990662c6451ec066a1807b3081c9296afbdb0bf
Diffstat (limited to 'verifier.h')
-rw-r--r--verifier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/verifier.h b/verifier.h
index 067dab55..6bee7494 100644
--- a/verifier.h
+++ b/verifier.h
@@ -65,7 +65,7 @@ struct Certificate {
65 * given keys. It optionally accepts a callback function for posting the progress to. Returns one 65 * given keys. It optionally accepts a callback function for posting the progress to. Returns one
66 * of the constants of VERIFY_SUCCESS and VERIFY_FAILURE. 66 * of the constants of VERIFY_SUCCESS and VERIFY_FAILURE.
67 */ 67 */
68int verify_file(unsigned char* addr, size_t length, const std::vector<Certificate>& keys, 68int verify_file(const unsigned char* addr, size_t length, const std::vector<Certificate>& keys,
69 const std::function<void(float)>& set_progress = nullptr); 69 const std::function<void(float)>& set_progress = nullptr);
70 70
71bool load_keys(const char* filename, std::vector<Certificate>& certs); 71bool load_keys(const char* filename, std::vector<Certificate>& certs);