summaryrefslogtreecommitdiffstats
path: root/verifier.cpp
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-10-29 00:13:10 +0200
committerDoug Zongker <dougz@android.com>2011-10-31 22:15:02 +0100
commit211aebc4e09ce7ca37003be4f01c83111cf0bb49 (patch)
tree395aa8bc2d1d0412a52d42a3bb2d75a54f96685c /verifier.cpp
parentReconcile with ics-mr1-release (diff)
downloadandroid_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.tar
android_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.tar.gz
android_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.tar.bz2
android_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.tar.lz
android_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.tar.xz
android_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.tar.zst
android_bootable_recovery-211aebc4e09ce7ca37003be4f01c83111cf0bb49.zip
Diffstat (limited to 'verifier.cpp')
-rw-r--r--verifier.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/verifier.cpp b/verifier.cpp
index 58ca72393..1c5a41d1b 100644
--- a/verifier.cpp
+++ b/verifier.cpp
@@ -25,6 +25,8 @@
#include <stdio.h>
#include <errno.h>
+extern RecoveryUI* ui;
+
// Look for an RSA signature embedded in the .ZIP file comment given
// the path to the zip. Verify it matches one of the given public
// keys.
@@ -33,7 +35,7 @@
// or no key matches the signature).
int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys) {
- ui_set_progress(0.0);
+ ui->SetProgress(0.0);
FILE* f = fopen(path, "rb");
if (f == NULL) {
@@ -161,7 +163,7 @@ int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKey
so_far += size;
double f = so_far / (double)signed_len;
if (f > frac + 0.02 || size == so_far) {
- ui_set_progress(f);
+ ui->SetProgress(f);
frac = f;
}
}