summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.h
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/applypatch.h
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/applypatch.h')
-rw-r--r--applypatch/applypatch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/applypatch/applypatch.h b/applypatch/applypatch.h
index 415bc1b3c..e0df104b5 100644
--- a/applypatch/applypatch.h
+++ b/applypatch/applypatch.h
@@ -18,16 +18,16 @@
#define _APPLYPATCH_H
#include <sys/stat.h>
-#include "mincrypt/sha.h"
+#include "openssl/sha.h"
#include "edify/expr.h"
typedef struct _Patch {
- uint8_t sha1[SHA_DIGEST_SIZE];
+ uint8_t sha1[SHA_DIGEST_LENGTH];
const char* patch_filename;
} Patch;
typedef struct _FileContents {
- uint8_t sha1[SHA_DIGEST_SIZE];
+ uint8_t sha1[SHA_DIGEST_LENGTH];
unsigned char* data;
ssize_t size;
struct stat st;