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

Function test_openssl_availability

lib/cpp/test/OpenSSLManualInitTest.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void test_openssl_availability() {
55 // Check whether Thrift leaves OpenSSL functionality available after
56 // the last TSSLSocketFactory is destroyed when manual
57 // initialization is set
58 openssl_init();
59 make_isolated_sslsocketfactory();
60
61 // The following function is one that will fail if OpenSSL is
62 // uninitialized. It might also fail on very old versions of
63 // OpenSSL...
64 const EVP_MD* md = EVP_get_digestbyname("SHA256");
65 BOOST_CHECK(md != nullptr);
66 openssl_cleanup();
67}
68
69#ifdef BOOST_TEST_DYN_LINK
70bool init_unit_test_suite() {

Callers

nothing calls this directly

Calls 3

openssl_initFunction · 0.85
openssl_cleanupFunction · 0.85

Tested by

no test coverage detected