mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-17 00:25:40 +02:00
managed secure socket allocation and deallocation #4313
This commit is contained in:
parent
d80aa7c938
commit
622e40e5d7
20 changed files with 119 additions and 48 deletions
|
@ -68,21 +68,6 @@ SecureSocket::~SecureSocket()
|
|||
|
||||
delete[] m_error;
|
||||
}
|
||||
void
|
||||
SecureSocket::close()
|
||||
{
|
||||
if (m_ssl->m_ssl != NULL) {
|
||||
SSL_free(m_ssl->m_ssl);
|
||||
m_ssl->m_ssl = NULL;
|
||||
}
|
||||
|
||||
if (m_ssl->m_context != NULL) {
|
||||
SSL_CTX_free(m_ssl->m_context);
|
||||
m_ssl->m_context = NULL;
|
||||
}
|
||||
|
||||
TCPSocket::close();
|
||||
}
|
||||
|
||||
void
|
||||
SecureSocket::secureConnect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue