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

Method createSSL

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

Source from the content-addressed store, hash-verified

220}
221
222SSL* SSLContext::createSSL() {
223 SSL* ssl = SSL_new(ctx_);
224 if (ssl == nullptr) {
225 string errors;
226 buildErrors(errors);
227 throw TSSLException("SSL_new: " + errors);
228 }
229 return ssl;
230}
231
232// TSSLSocket implementation
233TSSLSocket::TSSLSocket(std::shared_ptr<SSLContext> ctx, std::shared_ptr<TConfiguration> config)

Callers 1

Calls 2

buildErrorsFunction · 0.85
TSSLExceptionClass · 0.85

Tested by

no test coverage detected