From: Subodh Iyengar <subodh@fb.com> Date: Sun, 13 Nov 2016 01:13:44 +0000 (-0800) Subject: Add ecdsa smart ptr X-Git-Tag: v2016.11.14.00~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4c7d52264b25ade4758be7631aca68721a2704d5;p=folly.git Add ecdsa smart ptr Summary: Add ecdsa smart ptr. Reviewed By: knekritz Differential Revision: D4173310 fbshipit-source-id: abd5f799b3414b70128635c4390af6f2de329e11 --- diff --git a/folly/io/async/ssl/OpenSSLPtrTypes.h b/folly/io/async/ssl/OpenSSLPtrTypes.h index 238dd9be..216decb6 100644 --- a/folly/io/async/ssl/OpenSSLPtrTypes.h +++ b/folly/io/async/ssl/OpenSSLPtrTypes.h @@ -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