Register singleton's destruction using std::atexit
[folly.git] / folly / ssl / OpenSSLPtrTypes.h
index 45f477743e4c02f1292e328b0da56208280e7900..a4fe7a90b6a73a0831f6141b67de43739ed3c464 100644 (file)
@@ -32,6 +32,13 @@ 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 X509ExtensionDeleter =
+    folly::static_function_deleter<X509_EXTENSION, &X509_EXTENSION_free>;
+using X509ExtensionUniquePtr =
+    std::unique_ptr<X509_EXTENSION, X509ExtensionDeleter>;
+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 =
@@ -99,5 +106,5 @@ using BIGNUMUniquePtr = std::unique_ptr<BIGNUM, BIGNUMDeleter>;
 // SSL and SSL_CTX
 using SSLDeleter = folly::static_function_deleter<SSL, &SSL_free>;
 using SSLUniquePtr = std::unique_ptr<SSL, SSLDeleter>;
-}
-}
+} // namespace ssl
+} // namespace folly