| 9219 | } |
| 9220 | |
| 9221 | inline SSLClient::~SSLClient() { |
| 9222 | if (ctx_) { SSL_CTX_free(ctx_); } |
| 9223 | // Make sure to shut down SSL since shutdown_ssl will resolve to the |
| 9224 | // base function rather than the derived function once we get to the |
| 9225 | // base class destructor, and won't free the SSL (causing a leak). |
| 9226 | shutdown_ssl_impl(socket_, true); |
| 9227 | } |
| 9228 | |
| 9229 | inline bool SSLClient::is_valid() const { return ctx_; } |
| 9230 |
nothing calls this directly
no outgoing calls
no test coverage detected