| 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_; |
no outgoing calls
no test coverage detected