Procházet zdrojové kódy

Updating code to PuTTY f4fbaa1b

Source commit: 7beedaf29f986b1f363bf157f09153a9b56c6c33
Martin Prikryl před 6 roky
rodič
revize
05f8d57ab8
2 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 3 3
      source/core/SecureShell.cpp
  2. 2 0
      source/putty/sshaes.c

+ 3 - 3
source/core/SecureShell.cpp

@@ -1189,14 +1189,14 @@ void __fastcall TSecureShell::SendSpecial(int Code)
     LogEvent(FORMAT(L"Sending special code: %d", (Code)));
   }
   CheckConnection();
-  FBackend->special(FBackendHandle, (Telnet_Special)Code);
+  FBackend->special(FBackendHandle, (SessionSpecialCode)Code, 0);
   CheckConnection();
   FLastDataSent = Now();
 }
 //---------------------------------------------------------------------------
 void __fastcall TSecureShell::SendEOF()
 {
-  SendSpecial(TS_EOF);
+  SendSpecial(SS_EOF);
 }
 //---------------------------------------------------------------------------
 unsigned int __fastcall TSecureShell::TimeoutPrompt(TQueryParamsTimerEvent PoolEvent)
@@ -2052,7 +2052,7 @@ void __fastcall TSecureShell::KeepAlive()
   if (FActive && (FWaiting == 0))
   {
     LogEvent(L"Sending null packet to keep session alive.");
-    SendSpecial(TS_PING);
+    SendSpecial(SS_PING);
   }
   else
   {

+ 2 - 0
source/putty/sshaes.c

@@ -50,6 +50,8 @@
 #    define INLINE
 #endif
 
+typedef struct AESContext AESContext; // MPEXT
+
 struct AESContext {
     word32 keysched_buf[(MAX_NR + 1) * NB + 3];
     word32 invkeysched_buf[(MAX_NR + 1) * NB + 3];