mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
fixed #3635: FTPS library was accepting SSL 3.0 and TLS 1.0 by default, now instead it will accept TLS 1.0, TLS 1.1 and TLS 1.2
This commit is contained in:
parent
0cfdce8ef6
commit
c8550c3f2a
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ You should have received a copy of the GNU General Public License
|
|||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Security;
|
||||
using System.Security.Authentication;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
@ -141,6 +142,7 @@ public FTP(FTPAccount account)
|
|||
break;
|
||||
}
|
||||
|
||||
client.SslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12;
|
||||
client.DataConnectionEncryption = true;
|
||||
|
||||
if (!string.IsNullOrEmpty(account.FTPSCertificateLocation) && File.Exists(account.FTPSCertificateLocation))
|
||||
|
|
Loading…
Reference in a new issue