diff options
Diffstat (limited to 'verifier.h')
-rw-r--r-- | verifier.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/verifier.h b/verifier.h index 6ce1b44d1..d70417340 100644 --- a/verifier.h +++ b/verifier.h @@ -19,6 +19,12 @@ #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; + typedef struct Certificate { int hash_len; // SHA_DIGEST_SIZE (SHA-1) or SHA256_DIGEST_SIZE (SHA-256) RSAPublicKey* public_key; @@ -27,7 +33,7 @@ typedef struct Certificate { /* 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 Certificate *pKeys, unsigned int numKeys); +int verify_file(const char* path); Certificate* load_keys(const char* filename, int* numKeys); |