| 88 | namespace internal { |
| 89 | |
| 90 | Try<std::shared_ptr<SocketImpl>> LibeventSSLSocketImpl::create(int_fd s) |
| 91 | { |
| 92 | openssl::initialize(); |
| 93 | |
| 94 | if (!openssl::flags().enabled) { |
| 95 | return Error("SSL is disabled"); |
| 96 | } |
| 97 | |
| 98 | auto socket = std::make_shared<LibeventSSLSocketImpl>(s); |
| 99 | // See comment at 'initialize' declaration for why we call this. |
| 100 | socket->initialize(); |
| 101 | return socket; |
| 102 | } |
| 103 | |
| 104 | |
| 105 | LibeventSSLSocketImpl::~LibeventSSLSocketImpl() |
nothing calls this directly
no test coverage detected