Răsfoiți Sursa

Bug 1917: List encrypt-then-MAC algorithms in /info listing

https://winscp.net/tracker/1917
(cherry picked from commit 1cc7db77edf6e122ef9c268d6562eccaf9103ae9)

Source commit: d1da74a7edf9bb6b04b0ac01d847458496696d50
Martin Prikryl 5 ani în urmă
părinte
comite
6fd78072e0
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      source/core/PuttyIntf.cpp

+ 7 - 1
source/core/PuttyIntf.cpp

@@ -1046,7 +1046,13 @@ TStrings * SshMacList()
   for (int Index = 0; Index < Count; Index++)
   {
     UnicodeString Name = UnicodeString(Macs[Index]->name);
-    Result->Add(Name);
+    UnicodeString S = Name;
+    UnicodeString ETMName = UnicodeString(Macs[Index]->etm_name);
+    if (!ETMName.IsEmpty())
+    {
+      S = FORMAT(L"%s (%s)", (S, ETMName));
+    }
+    Result->Add(S);
   }
   return Result.release();
 }