Move OpenSSL locking code out of SSLContext
[folly.git] / folly / io / async / test / AsyncSocketExceptionTest.cpp
index 7e73df05d6cefbb933427dd7b94e7daf87d7e18c..78d2341b4d2b5e2de8f730ce8c58a242e54ac4d7 100644 (file)
@@ -18,6 +18,7 @@
 #include <folly/io/async/AsyncSocketException.h>
 #include <folly/io/async/SSLContext.h>
 #include <folly/io/async/ssl/SSLErrors.h>
+#include <folly/ssl/Init.h>
 
 #include <folly/portability/GTest.h>
 #include <folly/portability/OpenSSL.h>
@@ -54,7 +55,7 @@ TEST(AsyncSocketException, SimpleTest) {
 TEST(AsyncSocketException, SSLExceptionType) {
   {
     // Initiailzes OpenSSL everything. Else some of the calls will block
-    folly::SSLContext::initializeOpenSSL();
+    folly::ssl::init();
     SSLException eof(SSL_ERROR_ZERO_RETURN, 0, 0, 0);
     EXPECT_EQ(eof.getType(), AsyncSocketException::END_OF_FILE);