Add ecdsa smart ptr
authorSubodh Iyengar <subodh@fb.com>
Sun, 13 Nov 2016 01:13:44 +0000 (17:13 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sun, 13 Nov 2016 01:23:36 +0000 (17:23 -0800)
Summary: Add ecdsa smart ptr.

Reviewed By: knekritz

Differential Revision: D4173310

fbshipit-source-id: abd5f799b3414b70128635c4390af6f2de329e11

folly/io/async/ssl/OpenSSLPtrTypes.h

index 238dd9beab5ed346d6391c45947dec36b48db533..216decb6ad1e323461f6ac39012847bf6289559e 100644 (file)
@@ -23,6 +23,7 @@
 #include <openssl/bn.h>
 #ifndef OPENSSL_NO_EC
 #include <openssl/ec.h>
+#include <openssl/ecdsa.h>
 #endif
 #include <openssl/evp.h>
 #include <openssl/rsa.h>
@@ -87,6 +88,9 @@ using EcGroupDeleter = folly::static_function_deleter<EC_GROUP, &EC_GROUP_free>;
 using EcGroupUniquePtr = std::unique_ptr<EC_GROUP, EcGroupDeleter>;
 using EcPointDeleter = folly::static_function_deleter<EC_POINT, &EC_POINT_free>;
 using EcPointUniquePtr = std::unique_ptr<EC_POINT, EcPointDeleter>;
+using EcdsaSignDeleter =
+    folly::static_function_deleter<ECDSA_SIG, &ECDSA_SIG_free>;
+using EcdsaSigUniquePtr = std::unique_ptr<ECDSA_SIG, EcdsaSignDeleter>;
 #endif
 
 // BIGNUMs