summaryrefslogtreecommitdiffstats
path: root/applypatch/main.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-02-04 20:22:39 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-02-04 20:22:39 +0100
commit7b6027dde49e5f14e9cde6de4fa542b146f41a2f (patch)
treed9d9b43a46b67a65a702c1b3142a3455f1fef386 /applypatch/main.cpp
parentMerge "uncrypt: add options to setup bcb and clear bcb." (diff)
parentMerge "Switch from mincrypt to BoringSSL in applypatch and updater." (diff)
downloadandroid_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar
android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.gz
android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.bz2
android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.lz
android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.xz
android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.zst
android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.zip
Diffstat (limited to 'applypatch/main.cpp')
-rw-r--r--applypatch/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/applypatch/main.cpp b/applypatch/main.cpp
index 966d8b91f..445a7fee7 100644
--- a/applypatch/main.cpp
+++ b/applypatch/main.cpp
@@ -21,7 +21,7 @@
#include "applypatch.h"
#include "edify/expr.h"
-#include "mincrypt/sha.h"
+#include "openssl/sha.h"
static int CheckMode(int argc, char** argv) {
if (argc < 3) {
@@ -54,7 +54,7 @@ static bool ParsePatchArgs(int argc, char** argv, char*** sha1s,
*patches = reinterpret_cast<Value**>(malloc(*num_patches * sizeof(Value*)));
memset(*patches, 0, *num_patches * sizeof(Value*));
- uint8_t digest[SHA_DIGEST_SIZE];
+ uint8_t digest[SHA_DIGEST_LENGTH];
for (int i = 0; i < *num_patches; ++i) {
char* colon = strchr(argv[i], ':');