Create X509_STORE ptr type
authorAlex Guzman <reanimus@fb.com>
Tue, 1 Aug 2017 23:23:36 +0000 (16:23 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 1 Aug 2017 23:44:21 +0000 (16:44 -0700)
Summary: What it says on tin

Reviewed By: knekritz

Differential Revision: D5533819

fbshipit-source-id: e3ba89f02d20d171fbcb8ed2853267d37bd86756

folly/ssl/OpenSSLPtrTypes.h

index 45f477743e4c02f1292e328b0da56208280e7900..7784888fba04695688341536dfac72ac91f09a0e 100644 (file)
@@ -32,6 +32,9 @@ using ASN1TimeUniquePtr = std::unique_ptr<ASN1_TIME, ASN1TimeDeleter>;
 // X509
 using X509Deleter = folly::static_function_deleter<X509, &X509_free>;
 using X509UniquePtr = std::unique_ptr<X509, X509Deleter>;
+using X509StoreDeleter =
+    folly::static_function_deleter<X509_STORE, &X509_STORE_free>;
+using X509StoreUniquePtr = std::unique_ptr<X509_STORE, X509StoreDeleter>;
 using X509StoreCtxDeleter =
     folly::static_function_deleter<X509_STORE_CTX, &X509_STORE_CTX_free>;
 using X509StoreCtxUniquePtr =