MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / createSecureSocket

Method createSecureSocket

libminifi/src/io/StreamFactory.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 std::unique_ptr<Socket> createSecureSocket(const std::string &host, const uint16_t port, const std::shared_ptr<minifi::controllers::SSLContextService> &ssl_service) {
65#ifdef OPENSSL_SUPPORT
66 if (ssl_service != nullptr) {
67 auto context = std::make_shared<TLSContext>(configuration_, ssl_service);
68 return utils::make_unique<TLSSocket>(context, host, port);
69 }
70#endif /* OPENSSL_SUPPORT */
71 return nullptr;
72 }
73
74 private:
75 std::shared_ptr<V> context_;

Callers 3

mainFunction · 0.45
SocketTests.cppFile · 0.45
onTriggerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected