Ver código fonte

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

https://winscp.net/tracker/1917

Source commit: 7bb5e5302198419fa78405d61e6b495ed92c4a0d
Martin Prikryl 5 anos atrás
pai
commit
1cc7db77ed
1 arquivos alterados com 7 adições e 1 exclusões
  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();
 }