Move OpenSSL locking code out of SSLContext
[folly.git] / folly / ssl / test / OpenSSLCertUtilsTest.cpp
index a337b4ff02e9043333eb3ac3da8fc632d2b9a1d2..46adbf4d5d207b7b3c19c7c0e705ad36f3764e08 100644 (file)
 
 #include <folly/Range.h>
 #include <folly/String.h>
-#include <folly/io/async/SSLContext.h>
 #include <folly/portability/GTest.h>
 #include <folly/portability/OpenSSL.h>
 #include <folly/ssl/OpenSSLPtrTypes.h>
+#include <folly/ssl/Init.H>
 
 using namespace testing;
 using namespace folly;
@@ -60,7 +60,7 @@ const std::string kTestCertWithSan = folly::stripLeftMargin(R"(
 class OpenSSLCertUtilsTest : public Test {
  public:
   void SetUp() override {
-    SSLContext::initializeOpenSSL();
+    folly::ssl::init();
   }
 };