| 52 | } |
| 53 | |
| 54 | void 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 |
| 70 | bool init_unit_test_suite() { |
nothing calls this directly
no test coverage detected