X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fssl%2FOpenSSLCertUtils.h;fp=folly%2Fssl%2FOpenSSLCertUtils.h;h=1f5f63d22c6bf3155af84a991c188f6786b02af6;hp=9de269f5c6f2b81bf675a44bb561f969ca9511ab;hb=ecd0fb38477b04e36685a0808a904fd9080f50b1;hpb=e3d0887cb670dd2eb70b805925b2d4b128ea0f70 diff --git a/folly/ssl/OpenSSLCertUtils.h b/folly/ssl/OpenSSLCertUtils.h index 9de269f5..1f5f63d2 100644 --- a/folly/ssl/OpenSSLCertUtils.h +++ b/folly/ssl/OpenSSLCertUtils.h @@ -76,6 +76,12 @@ class OpenSSLCertUtils { */ static std::unique_ptr derEncode(X509&); + /** + * Reads certificates from memory and returns them as a vector of X509 + * pointers. + */ + static std::vector readCertsFromBuffer(ByteRange); + private: static std::string getDateTimeStr(const ASN1_TIME* time); };