| 897 | } |
| 898 | |
| 899 | TSSLSocketFactory::~TSSLSocketFactory() { |
| 900 | Guard guard(mutex_); |
| 901 | ctx_.reset(); |
| 902 | count_--; |
| 903 | if (count_ == 0 && didWeInitializeOpenSSL_) { |
| 904 | cleanupOpenSSL(); |
| 905 | didWeInitializeOpenSSL_ = false; |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | std::shared_ptr<TSSLSocket> TSSLSocketFactory::createSocket() { |
| 910 | std::shared_ptr<TSSLSocket> ssl(new TSSLSocket(ctx_)); |
nothing calls this directly
no test coverage detected