From ad8a8cb578822886334c3fb38141a2419f4bed1a Mon Sep 17 00:00:00 2001 From: Anirudh Ramachandran Date: Mon, 2 May 2016 09:12:01 -0700 Subject: [PATCH] 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 --- folly/io/async/ssl/OpenSSLPtrTypes.h | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.34.1