Skip to content

Commit

Permalink
Limit impact of e78c248 to TLS 1.3 only
Browse files Browse the repository at this point in the history
https://winscp.net/tracker/1834

Source commit: d4f10f2624093a4781a579b8c041b64c9d6661c4
  • Loading branch information
martinprikryl committed Apr 23, 2020
1 parent cdfe45d commit cf7a87c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/filezilla/AsyncSslSocketLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@ BOOL CAsyncSslSocketLayer::ShutDown(int nHow /*=sends*/)
if (res == 0)
{
res = SSL_shutdown(m_ssl);
// While this should not be necessary, with IIS we get timeout otherwise
if (SSL_version(m_ssl) <= TLS1_2_VERSION)
{
res = 0;
}
}
if (res >= 0)
{
Expand Down

0 comments on commit cf7a87c

Please sign in to comment.