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

Method TSSLSocketFactory

lib/cpp/src/thrift/transport/TSSLSocket.cpp:886–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884bool TSSLSocketFactory::didWeInitializeOpenSSL_ = false;
885
886TSSLSocketFactory::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
899TSSLSocketFactory::~TSSLSocketFactory() {
900 Guard guard(mutex_);

Callers

nothing calls this directly

Calls 1

initializeOpenSSLFunction · 0.85

Tested by

no test coverage detected