summaryrefslogtreecommitdiffstats
path: root/verifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'verifier.h')
-rw-r--r--verifier.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/verifier.h b/verifier.h
index 58083fe14..db068639a 100644
--- a/verifier.h
+++ b/verifier.h
@@ -24,6 +24,12 @@
#include <openssl/rsa.h>
#include <openssl/sha.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;
+
struct RSADeleter {
void operator()(RSA* rsa) {
RSA_free(rsa);
@@ -63,8 +69,7 @@ struct Certificate {
* is signed and the signature matches one of the given keys. Return
* one of the constants below.
*/
-int verify_file(unsigned char* addr, size_t length,
- const std::vector<Certificate>& keys);
+int verify_file(unsigned char* addr, size_t length);
bool load_keys(const char* filename, std::vector<Certificate>& certs);