summaryrefslogtreecommitdiffstats
path: root/verifier.h
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-11-13 03:45:15 +0100
committerJean-Baptiste Queru <jbq@google.com>2009-11-13 03:45:15 +0100
commita43c44f31f873d7e39d3c2872f0b9531b1584f11 (patch)
tree3089f7cc4eace77d713d6a756305ee2335238f99 /verifier.h
parentonly build flash_image for eng (diff)
downloadandroid_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.tar
android_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.tar.gz
android_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.tar.bz2
android_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.tar.lz
android_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.tar.xz
android_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.tar.zst
android_bootable_recovery-a43c44f31f873d7e39d3c2872f0b9531b1584f11.zip
Diffstat (limited to '')
-rw-r--r--verifier.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/verifier.h b/verifier.h
index d784dce4c..1bdfca6dd 100644
--- a/verifier.h
+++ b/verifier.h
@@ -17,14 +17,14 @@
#ifndef _RECOVERY_VERIFIER_H
#define _RECOVERY_VERIFIER_H
-#include "minzip/Zip.h"
#include "mincrypt/rsa.h"
-/*
- * Check the digital signature (as applied by jarsigner) on a Zip archive.
- * Every file in the archive must be signed by one of the supplied RSA keys.
+/* Look in the file for a signature footer, and verify that it
+ * matches one of the given keys. Return one of the constants below.
*/
-bool verify_jar_signature(const ZipArchive *pArchive,
- const RSAPublicKey *pKeys, int numKeys);
+int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys);
+
+#define VERIFY_SUCCESS 0
+#define VERIFY_FAILURE 1
#endif /* _RECOVERY_VERIFIER_H */