MCPcopy Create free account
hub / github.com/apache/thrift / make_isolated_sslsocketfactory

Function make_isolated_sslsocketfactory

lib/cpp/test/OpenSSLManualInitTest.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using namespace apache::thrift::transport;
32
33void make_isolated_sslsocketfactory() {
34 // Here we create an isolated TSSLSocketFactory to ensure the
35 // constructor and destructor of TSSLSocketFactory get run. Thus
36 // without manual initialization normally OpenSSL would be
37 // uninitialized after this function.
38 TSSLSocketFactory factory;
39}
40
41void openssl_init() {
42#if MANUAL_OPENSSL_INIT

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected