From 2673cec07a4740f86438b50cfe1b70b258a9a8c8 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Tue, 2 Apr 2013 20:22:16 +0000 Subject: Move all AOSP code out of recovery binary Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0 --- verifier.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'verifier.h') diff --git a/verifier.h b/verifier.h index 1bdfca6dd..c5a2391c7 100644 --- a/verifier.h +++ b/verifier.h @@ -19,10 +19,16 @@ #include "mincrypt/rsa.h" +#define ASSUMED_UPDATE_BINARY_NAME "META-INF/com/google/android/update-binary" + +enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT }; + +static const float VERIFICATION_PROGRESS_FRACTION = 0.25; + /* Look in the file for a signature footer, and verify that it * matches one of the given keys. Return one of the constants below. */ -int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys); +int verify_file(const char* path); #define VERIFY_SUCCESS 0 #define VERIFY_FAILURE 1 -- cgit v1.2.3