Browse Source

Validating encrypting key, before connection

Source commit: 3e0ff2ba4bda0301c85479d43ac101ba85233df7
Martin Prikryl 6 năm trước cách đây
mục cha
commit
d49a5d6f63
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      source/core/Terminal.cpp

+ 1 - 0
source/core/Terminal.cpp

@@ -1142,6 +1142,7 @@ void __fastcall TTerminal::Open()
   try
   {
     FEncryptKey = HexToBytes(FSessionData->EncryptKey);
+    ValidateEncryptKey(FEncryptKey);
 
     DoInformation(L"", true, 1);
     try