summaryrefslogtreecommitdiffstats
path: root/applypatch/bspatch.cpp
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2016-02-04 09:23:21 +0100
committerSen Jiang <senj@google.com>2016-02-04 09:27:43 +0100
commitc48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7 (patch)
treeb6db9b5f6f80dfe4b8d4a5333d851a0eb14927bf /applypatch/bspatch.cpp
parentMerge "uncrypt: add options to setup bcb and clear bcb." (diff)
downloadandroid_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar
android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.gz
android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.bz2
android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.lz
android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.xz
android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.tar.zst
android_bootable_recovery-c48cb5e5972bbeb1cacbe37b80a3e9f8003b54b7.zip
Diffstat (limited to 'applypatch/bspatch.cpp')
-rw-r--r--applypatch/bspatch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/applypatch/bspatch.cpp b/applypatch/bspatch.cpp
index 75975ad6d..25171170a 100644
--- a/applypatch/bspatch.cpp
+++ b/applypatch/bspatch.cpp
@@ -30,7 +30,7 @@
#include <bzlib.h>
-#include "mincrypt/sha.h"
+#include "openssl/sha.h"
#include "applypatch.h"
void ShowBSDiffLicense() {
@@ -114,7 +114,7 @@ int ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size,
printf("short write of output: %d (%s)\n", errno, strerror(errno));
return 1;
}
- if (ctx) SHA_update(ctx, new_data, new_size);
+ if (ctx) SHA1_Update(ctx, new_data, new_size);
free(new_data);
return 0;