~TCP_SocketSSL(): destructor
| 285 | // ~TCP_SocketSSL(): |
| 286 | // destructor |
| 287 | TCP_SocketSSL::~TCP_SocketSSL() |
| 288 | { |
| 289 | // shutdown SSL connection |
| 290 | SSL_shutdown(ssl); |
| 291 | |
| 292 | #ifdef _WIN32 |
| 293 | closesocket(sockfd); |
| 294 | #else |
| 295 | close(sockfd); |
| 296 | #endif |
| 297 | |
| 298 | SSL_free(ssl); |
| 299 | SSL_CTX_free(ctx); |
| 300 | cleanup_sockets(); |
| 301 | } |
| 302 | |
| 303 | |
| 304 | int |
nothing calls this directly
no test coverage detected