Jelajahi Sumber

Merge branch 'master' into dev

Source commit: 6d03627b7e1a7a0834b8c20740aa7f626b4715b4
Martin Prikryl 5 tahun lalu
induk
melakukan
3cc16c3062
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      source/core/Common.cpp
  2. 1 1
      source/core/Terminal.cpp

+ 1 - 0
source/core/Common.cpp

@@ -3269,6 +3269,7 @@ void __fastcall ParseCertificate(const UnicodeString & Path,
 {
 {
   Certificate = NULL;
   Certificate = NULL;
   PrivateKey = NULL;
   PrivateKey = NULL;
+  WrongPassphrase = false;
   bool HasPassphrase = !Passphrase.IsEmpty();
   bool HasPassphrase = !Passphrase.IsEmpty();
 
 
   FILE * File;
   FILE * File;

+ 1 - 1
source/core/Terminal.cpp

@@ -7830,7 +7830,7 @@ bool __fastcall TTerminal::LoadTlsCertificate(X509 *& Certificate, EVP_PKEY *& P
     {
     {
       Retry = false;
       Retry = false;
 
 
-      bool WrongPassphrase = false;
+      bool WrongPassphrase;
       ParseCertificate(SessionData->TlsCertificateFile, Passphrase, Certificate, PrivateKey, WrongPassphrase);
       ParseCertificate(SessionData->TlsCertificateFile, Passphrase, Certificate, PrivateKey, WrongPassphrase);
       if (WrongPassphrase)
       if (WrongPassphrase)
       {
       {