diff options
author | Tianjie Xu <xunchang@google.com> | 2018-10-19 02:55:38 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-10-19 02:55:38 +0200 |
commit | 81ef25aada67efb2159e32bbf9515bf2e6bf9f69 (patch) | |
tree | f67305610f0cf98f1b780af9d554c7b2e564004d /verifier.h | |
parent | Merge "uncrypt: fix ioctl direction for F2FS_IOC_GET_PIN_FILE" (diff) | |
parent | Merge "Load X509 keys from ziparchive" (diff) | |
download | android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.tar android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.tar.gz android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.tar.bz2 android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.tar.lz android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.tar.xz android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.tar.zst android_bootable_recovery-81ef25aada67efb2159e32bbf9515bf2e6bf9f69.zip |
Diffstat (limited to 'verifier.h')
-rw-r--r-- | verifier.h | 4 |
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 |