projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add utility function for loading certificates from a buffer
[folly.git]
/
folly
/
ssl
/
OpenSSLCertUtils.h
diff --git
a/folly/ssl/OpenSSLCertUtils.h
b/folly/ssl/OpenSSLCertUtils.h
index 9de269f5c6f2b81bf675a44bb561f969ca9511ab..1f5f63d22c6bf3155af84a991c188f6786b02af6 100644
(file)
--- a/
folly/ssl/OpenSSLCertUtils.h
+++ b/
folly/ssl/OpenSSLCertUtils.h
@@
-76,6
+76,12
@@
class OpenSSLCertUtils {
*/
static std::unique_ptr<IOBuf> derEncode(X509&);
*/
static std::unique_ptr<IOBuf> derEncode(X509&);
+ /**
+ * Reads certificates from memory and returns them as a vector of X509
+ * pointers.
+ */
+ static std::vector<X509UniquePtr> readCertsFromBuffer(ByteRange);
+
private:
static std::string getDateTimeStr(const ASN1_TIME* time);
};
private:
static std::string getDateTimeStr(const ASN1_TIME* time);
};