mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
Proper TLS shutdown
Source commit: 86a380532057c0d913678b9ca910cb319a8f422c
This commit is contained in:
@@ -606,6 +606,14 @@ int CAsyncSslSocketLayer::Receive(void* lpBuf, int nBufLen, int nFlags)
|
||||
|
||||
void CAsyncSslSocketLayer::Close()
|
||||
{
|
||||
if (!m_nShutDown)
|
||||
{
|
||||
ShutDown();
|
||||
while (!ShutDownComplete())
|
||||
{
|
||||
OnSend(0);
|
||||
}
|
||||
}
|
||||
m_nShutDown = 0;
|
||||
m_onCloseCalled = false;
|
||||
ResetSslSession();
|
||||
|
||||
Reference in New Issue
Block a user