summaryrefslogtreecommitdiffstats
path: root/verifier.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-10-15 20:44:14 +0200
committerTianjie Xu <xunchang@google.com>2018-10-18 20:42:01 +0200
commit0dd96853111942330acd6b629aedbddf9dfa6ae6 (patch)
treeb8a1ed113ff856f3293b4c605d7c76be5cb4b8bd /verifier.h
parentMerge "Implement the graphic menus" (diff)
downloadandroid_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.tar
android_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.tar.gz
android_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.tar.bz2
android_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.tar.lz
android_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.tar.xz
android_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.tar.zst
android_bootable_recovery-0dd96853111942330acd6b629aedbddf9dfa6ae6.zip
Diffstat (limited to '')
-rw-r--r--verifier.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/verifier.h b/verifier.h
index b13424126..b7924c71f 100644
--- a/verifier.h
+++ b/verifier.h
@@ -76,6 +76,10 @@ bool load_keys(const char* filename, std::vector<Certificate>& certs);
// false if there is a parsing failure or the signature's encryption algorithm is not supported.
bool LoadCertificateFromBuffer(const std::vector<uint8_t>& pem_content, Certificate* cert);
+// Iterates over the zip entries with the suffix "x509.pem" and returns a list of recognized
+// certificates. Returns an empty list if we fail to parse any of the entries.
+std::vector<Certificate> LoadKeysFromZipfile(const std::string& zip_name);
+
#define VERIFY_SUCCESS 0
#define VERIFY_FAILURE 1