diff options
author | Elliott Hughes <enh@google.com> | 2019-05-10 01:18:32 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-10 01:18:32 +0200 |
commit | 774a79492a25767660494856500f90789fa3494e (patch) | |
tree | c74a3d34b0434ffc197dd0035c846ddf254e4474 | |
parent | Merge "Skip hashtree computation during block image verify" am: c046a61d97 (diff) | |
parent | Merge "Track libziparchive API change." (diff) | |
download | android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.tar android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.tar.gz android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.tar.bz2 android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.tar.lz android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.tar.xz android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.tar.zst android_bootable_recovery-774a79492a25767660494856500f90789fa3494e.zip |
-rw-r--r-- | applypatch/imgdiff.cpp | 2 | ||||
-rw-r--r-- | install/install.cpp | 2 | ||||
-rw-r--r-- | install/verifier.cpp | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/applypatch/imgdiff.cpp b/applypatch/imgdiff.cpp index 415d95f14..cb34d4699 100644 --- a/applypatch/imgdiff.cpp +++ b/applypatch/imgdiff.cpp @@ -675,7 +675,7 @@ bool ZipModeImage::Initialize(const std::string& filename) { // Iterate the zip entries and compose the image chunks accordingly. bool ZipModeImage::InitializeChunks(const std::string& filename, ZipArchiveHandle handle) { void* cookie; - int ret = StartIteration(handle, &cookie, nullptr, nullptr); + int ret = StartIteration(handle, &cookie); if (ret != 0) { LOG(ERROR) << "Failed to iterate over entries in " << filename << ": " << ErrorCodeString(ret); return false; diff --git a/install/install.cpp b/install/install.cpp index d62bffc59..1b51b4246 100644 --- a/install/install.cpp +++ b/install/install.cpp @@ -529,7 +529,7 @@ bool verify_package_compatibility(ZipArchiveHandle package_zip) { // Iterate all the entries inside COMPATIBILITY_ZIP_ENTRY and read the contents. void* cookie; - ret = StartIteration(zip_handle, &cookie, nullptr, nullptr); + ret = StartIteration(zip_handle, &cookie); if (ret != 0) { LOG(ERROR) << "Failed to start iterating zip entries: " << ErrorCodeString(ret); CloseArchive(zip_handle); diff --git a/install/verifier.cpp b/install/verifier.cpp index 6ba1d77c3..3de58e4bb 100644 --- a/install/verifier.cpp +++ b/install/verifier.cpp @@ -311,8 +311,7 @@ int verify_file(VerifierInterface* package, const std::vector<Certificate>& keys static std::vector<Certificate> IterateZipEntriesAndSearchForKeys(const ZipArchiveHandle& handle) { void* cookie; - ZipString suffix("x509.pem"); - int32_t iter_status = StartIteration(handle, &cookie, nullptr, &suffix); + int32_t iter_status = StartIteration(handle, &cookie, "", "x509.pem"); if (iter_status != 0) { LOG(ERROR) << "Failed to iterate over entries in the certificate zipfile: " << ErrorCodeString(iter_status); |