diff options
author | Sen Jiang <senj@google.com> | 2016-02-04 16:23:21 +0800 |
---|---|---|
committer | Sen Jiang <senj@google.com> | 2016-02-04 16:27:43 +0800 |
commit | c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7 (patch) | |
tree | b6db9b5f6f80dfe4b8d4a5333d851a0eb14927bf /applypatch/main.cpp | |
parent | e3434279c84846cfa49935638faef26ceb753b5e (diff) | |
download | android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.gz android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.bz2 android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.zip |
Switch from mincrypt to BoringSSL in applypatch and updater.
Bug: 18790686
Change-Id: I7d2136fb39b2266f5ae5be24819c617b08a6c21e
Diffstat (limited to 'applypatch/main.cpp')
-rw-r--r-- | applypatch/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applypatch/main.cpp b/applypatch/main.cpp index 966d8b91..445a7fee 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], ':'); |