Commit d0f5d850 authored by Alex Guzman's avatar Alex Guzman Committed by Facebook Github Bot

Add X509_EXTENSION unique pointer

Summary: Adds unique pointer type for X509_EXTENSION

Reviewed By: knekritz

Differential Revision: D5556504

fbshipit-source-id: b84190f20dd0a2ee9f5f07f197caf53a9a063af7
parent 11a44379
...@@ -32,6 +32,10 @@ using ASN1TimeUniquePtr = std::unique_ptr<ASN1_TIME, ASN1TimeDeleter>; ...@@ -32,6 +32,10 @@ using ASN1TimeUniquePtr = std::unique_ptr<ASN1_TIME, ASN1TimeDeleter>;
// X509 // X509
using X509Deleter = folly::static_function_deleter<X509, &X509_free>; using X509Deleter = folly::static_function_deleter<X509, &X509_free>;
using X509UniquePtr = std::unique_ptr<X509, X509Deleter>; using X509UniquePtr = std::unique_ptr<X509, X509Deleter>;
using X509ExtensionDeleter =
folly::static_function_deleter<X509_EXTENSION, &X509_EXTENSION_free>;
using X509ExtensionUniquePtr =
std::unique_ptr<X509_EXTENSION, X509ExtensionDeleter>;
using X509StoreDeleter = using X509StoreDeleter =
folly::static_function_deleter<X509_STORE, &X509_STORE_free>; folly::static_function_deleter<X509_STORE, &X509_STORE_free>;
using X509StoreUniquePtr = std::unique_ptr<X509_STORE, X509StoreDeleter>; using X509StoreUniquePtr = std::unique_ptr<X509_STORE, X509StoreDeleter>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment