| 884 | bool TSSLSocketFactory::didWeInitializeOpenSSL_ = false; |
| 885 | |
| 886 | TSSLSocketFactory::TSSLSocketFactory(SSLProtocol protocol) : server_(false) { |
| 887 | Guard guard(mutex_); |
| 888 | if (count_ == 0) { |
| 889 | if (!manualOpenSSLInitialization_) { |
| 890 | didWeInitializeOpenSSL_ = true; |
| 891 | initializeOpenSSL(); |
| 892 | } |
| 893 | randomize(); |
| 894 | } |
| 895 | count_++; |
| 896 | ctx_ = std::make_shared<SSLContext>(protocol); |
| 897 | } |
| 898 | |
| 899 | TSSLSocketFactory::~TSSLSocketFactory() { |
| 900 | Guard guard(mutex_); |
nothing calls this directly
no test coverage detected