Parcourir la source

Comments about enumerations relation to PuTTY code

Source commit: 05b3bc78814e6cc6bb10c697d3e940257f9b227d
Martin Prikryl il y a 8 ans
Parent
commit
1ac4cb81e1
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 1
      source/core/Configuration.h
  2. 1 0
      source/core/SessionData.h

+ 1 - 1
source/core/Configuration.h

@@ -15,7 +15,7 @@
 //---------------------------------------------------------------------------
 extern const wchar_t * AutoSwitchNames;
 extern const wchar_t * NotAutoSwitchNames;
-enum TAutoSwitch { asOn, asOff, asAuto };
+enum TAutoSwitch { asOn, asOff, asAuto }; // Has to match PuTTY FORCE_ON, FORCE_OFF, AUTO
 //---------------------------------------------------------------------------
 class TStoredSessionList;
 //---------------------------------------------------------------------------

+ 1 - 0
source/core/SessionData.h

@@ -25,6 +25,7 @@ enum TKex { kexWarn, kexDHGroup1, kexDHGroup14, kexDHGEx, kexRSA, kexECDH };
 #define KEX_COUNT (kexECDH+1)
 enum TGssLib { gssGssApi32, gssSspi, gssCustom };
 #define GSSLIB_COUNT (gssCustom+1)
+// names have to match PuTTY registry entries (see settings.c)
 enum TSshBug { sbIgnore1, sbPlainPW1, sbRSA1, sbHMAC2, sbDeriveKey2, sbRSAPad2,
   sbPKSessID2, sbRekey2, sbMaxPkt2, sbIgnore2, sbOldGex2, sbWinAdj };
 #define BUG_COUNT (sbWinAdj+1)