diff options
Diffstat (limited to '')
-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 |