aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker2012-11-02 17:04:05 -0500
committerDoug Zongker2012-11-02 17:09:57 -0500
commit6c249f7ae890694f061bfde7a3ab52bf367be110 (patch)
tree15652db30bd69d6ee35210f48e65943767958003 /verifier.h
parentbf80f49edcec6b22ad7b1219e6ed6eda1e930c8c (diff)
downloadplatform-bootable-recovery-6c249f7ae890694f061bfde7a3ab52bf367be110.tar.gz
platform-bootable-recovery-6c249f7ae890694f061bfde7a3ab52bf367be110.tar.xz
platform-bootable-recovery-6c249f7ae890694f061bfde7a3ab52bf367be110.zip
move key loading to verifier code
Add an option to verifier_test to load keys from a file, the way the recovery does. Change-Id: Icba0e391164f2c1a9fefeab4b0bcb878e91d17b4
Diffstat (limited to 'verifier.h')
-rw-r--r--verifier.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/verifier.h b/verifier.h
index 1bdfca6d..e9ef3b72 100644
--- a/verifier.h
+++ b/verifier.h
@@ -24,6 +24,8 @@
24 */ 24 */
25int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys); 25int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys);
26 26
27RSAPublicKey* load_keys(const char* filename, int* numKeys);
28
27#define VERIFY_SUCCESS 0 29#define VERIFY_SUCCESS 0
28#define VERIFY_FAILURE 1 30#define VERIFY_FAILURE 1
29 31