From: Anirudh Ramachandran Date: Mon, 2 May 2016 16:12:01 +0000 (-0700) Subject: Simplify CryptoSSLRequestManager using unified futures API X-Git-Tag: 2016.07.26~296 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=ad8a8cb578822886334c3fb38141a2419f4bed1a Simplify CryptoSSLRequestManager using unified futures API Summary: This diff unifies the nearly-replicated call paths for ECDSA and RSA sign request/response/fallback/etc. into one generic futures-based sign API. Once this is tested, we should be able to remove ~500 lines of code from CryptoSSLRequestManager Depends on D3094660 Reviewed By: siyengar Differential Revision: D3116535 fb-gh-sync-id: 11c50d81dab39e5426679b5a172c1ece2039fc10 fbshipit-source-id: 11c50d81dab39e5426679b5a172c1ece2039fc10 --- diff --git a/folly/io/async/ssl/OpenSSLPtrTypes.h b/folly/io/async/ssl/OpenSSLPtrTypes.h index 7948c62a..b39c3e87 100644 --- a/folly/io/async/ssl/OpenSSLPtrTypes.h +++ b/folly/io/async/ssl/OpenSSLPtrTypes.h @@ -17,6 +17,7 @@ #pragma once #include +#include #include #include #include @@ -76,6 +77,10 @@ using EcKeyDeleter = folly::static_function_deleter; using EcKeyUniquePtr = std::unique_ptr; #endif +// BIGNUMs +using BIGNUMDeleter = folly::static_function_deleter; +using BIGNUMUniquePtr = std::unique_ptr; + // SSL and SSL_CTX using SSLDeleter = folly::static_function_deleter; using SSLUniquePtr = std::unique_ptr;