Configuration.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. //---------------------------------------------------------------------------
  2. #ifndef ConfigurationH
  3. #define ConfigurationH
  4. #include <set>
  5. #include "RemoteFiles.h"
  6. #include "FileBuffer.h"
  7. #include "HierarchicalStorage.h"
  8. #include "Usage.h"
  9. //---------------------------------------------------------------------------
  10. #define SET_CONFIG_PROPERTY_EX(PROPERTY, APPLY) \
  11. if (PROPERTY != value) { F ## PROPERTY = value; Changed(); APPLY; }
  12. #define SET_CONFIG_PROPERTY(PROPERTY) \
  13. SET_CONFIG_PROPERTY_EX(PROPERTY, )
  14. //---------------------------------------------------------------------------
  15. extern const wchar_t * AutoSwitchNames;
  16. extern const wchar_t * NotAutoSwitchNames;
  17. enum TAutoSwitch { asOn, asOff, asAuto }; // Has to match PuTTY FORCE_ON, FORCE_OFF, AUTO
  18. //---------------------------------------------------------------------------
  19. class TStoredSessionList;
  20. class TCopyParamType;
  21. //---------------------------------------------------------------------------
  22. class TConfiguration : public TObject
  23. {
  24. private:
  25. bool FDontSave;
  26. bool FForceSave;
  27. bool FChanged;
  28. int FUpdating;
  29. TNotifyEvent FOnChange;
  30. void * FApplicationInfo;
  31. TUsage * FUsage;
  32. bool FLogging;
  33. bool FPermanentLogging;
  34. UnicodeString FLogFileName;
  35. UnicodeString FPermanentLogFileName;
  36. int FLogWindowLines;
  37. bool FLogFileAppend;
  38. bool FLogSensitive;
  39. bool FPermanentLogSensitive;
  40. __int64 FLogMaxSize;
  41. __int64 FPermanentLogMaxSize;
  42. int FLogMaxCount;
  43. int FPermanentLogMaxCount;
  44. int FLogProtocol;
  45. int FPermanentLogProtocol;
  46. int FActualLogProtocol;
  47. bool FLogActions;
  48. bool FPermanentLogActions;
  49. bool FLogActionsRequired;
  50. UnicodeString FActionsLogFileName;
  51. UnicodeString FPermanentActionsLogFileName;
  52. bool FConfirmOverwriting;
  53. bool FConfirmResume;
  54. bool FAutoReadDirectoryAfterOp;
  55. int FSessionReopenAuto;
  56. int FSessionReopenBackground;
  57. int FSessionReopenTimeout;
  58. int FSessionReopenAutoStall;
  59. UnicodeString FCustomIniFileStorageName;
  60. UnicodeString FIniFileStorageName;
  61. UnicodeString FVirtualIniFileStorageName;
  62. std::unique_ptr<TStrings> FOptionsStorage;
  63. int FProgramIniPathWrittable;
  64. int FTunnelLocalPortNumberLow;
  65. int FTunnelLocalPortNumberHigh;
  66. int FCacheDirectoryChangesMaxSize;
  67. bool FShowFtpWelcomeMessage;
  68. UnicodeString FDefaultRandomSeedFile;
  69. UnicodeString FRandomSeedFile;
  70. UnicodeString FPuttyRegistryStorageKey;
  71. UnicodeString FExternalIpAddress;
  72. int FLocalPortNumberMin;
  73. int FLocalPortNumberMax;
  74. bool FTryFtpWhenSshFails;
  75. int FParallelDurationThreshold;
  76. bool FScripting;
  77. UnicodeString FMimeTypes;
  78. int FDontReloadMoreThanSessions;
  79. int FScriptProgressFileNameLimit;
  80. bool FDisablePasswordStoring;
  81. bool FForceBanners;
  82. bool FDisableAcceptingHostKeys;
  83. bool FDefaultCollectUsage;
  84. TVSFixedFileInfo *__fastcall GetFixedApplicationInfo();
  85. void * __fastcall GetApplicationInfo();
  86. virtual UnicodeString __fastcall GetVersionStr();
  87. virtual UnicodeString __fastcall GetVersion();
  88. UnicodeString __fastcall GetProductVersion();
  89. UnicodeString __fastcall GetProductName();
  90. UnicodeString __fastcall GetCompanyName();
  91. UnicodeString __fastcall GetFileVersion(TVSFixedFileInfo * Info);
  92. UnicodeString __fastcall GetStoredSessionsSubKey();
  93. UnicodeString __fastcall GetPuttySessionsKey();
  94. UnicodeString __fastcall GetPuttySessionsSubKey();
  95. void __fastcall SetRandomSeedFile(UnicodeString value);
  96. UnicodeString __fastcall GetRandomSeedFileName();
  97. void __fastcall SetPuttyRegistryStorageKey(UnicodeString value);
  98. UnicodeString __fastcall GetSshHostKeysSubKey();
  99. UnicodeString __fastcall GetRootKeyStr();
  100. UnicodeString __fastcall GetConfigurationSubKey();
  101. TEOLType __fastcall GetLocalEOLType();
  102. void __fastcall SetLogging(bool value);
  103. bool __fastcall GetLogging();
  104. void __fastcall SetLogFileName(UnicodeString value);
  105. UnicodeString __fastcall GetLogFileName();
  106. bool __fastcall GetLogToFile();
  107. void __fastcall SetLogFileAppend(bool value);
  108. void __fastcall SetLogSensitive(bool value);
  109. void __fastcall SetLogMaxSize(__int64 value);
  110. __int64 __fastcall GetLogMaxSize();
  111. void __fastcall SetLogMaxCount(int value);
  112. int __fastcall GetLogMaxCount();
  113. void __fastcall SetLogProtocol(int value);
  114. void __fastcall SetLogActions(bool value);
  115. bool __fastcall GetLogActions();
  116. void __fastcall SetActionsLogFileName(UnicodeString value);
  117. UnicodeString __fastcall GetPermanentActionsLogFileName();
  118. UnicodeString __fastcall GetActionsLogFileName();
  119. UnicodeString __fastcall GetDefaultLogFileName();
  120. UnicodeString __fastcall GetTimeFormat();
  121. UnicodeString __fastcall GetRegistryStorageKey();
  122. UnicodeString __fastcall GetIniFileStorageNameForReadingWriting();
  123. UnicodeString __fastcall GetIniFileStorageNameForReading();
  124. UnicodeString __fastcall GetIniFileStorageName(bool ReadingOnly);
  125. void __fastcall SetOptionsStorage(TStrings * value);
  126. TStrings * __fastcall GetOptionsStorage();
  127. UnicodeString __fastcall GetPartialExt() const;
  128. UnicodeString __fastcall GetFileInfoString(const UnicodeString Key);
  129. void __fastcall SetSessionReopenAuto(int value);
  130. void __fastcall SetSessionReopenBackground(int value);
  131. void __fastcall SetSessionReopenTimeout(int value);
  132. void __fastcall SetSessionReopenAutoStall(int value);
  133. void __fastcall SetTunnelLocalPortNumberLow(int value);
  134. void __fastcall SetTunnelLocalPortNumberHigh(int value);
  135. void __fastcall SetCacheDirectoryChangesMaxSize(int value);
  136. void __fastcall SetShowFtpWelcomeMessage(bool value);
  137. int __fastcall GetCompoundVersion();
  138. void __fastcall UpdateActualLogProtocol();
  139. void __fastcall SetExternalIpAddress(UnicodeString value);
  140. void __fastcall SetTryFtpWhenSshFails(bool value);
  141. void __fastcall SetParallelDurationThreshold(int value);
  142. void __fastcall SetMimeTypes(UnicodeString value);
  143. bool __fastcall GetCollectUsage();
  144. void __fastcall SetCollectUsage(bool value);
  145. bool __fastcall GetIsUnofficial();
  146. bool __fastcall GetPersistent();
  147. void SetLocalPortNumberMin(int value);
  148. void SetLocalPortNumberMax(int value);
  149. protected:
  150. TStorage FStorage;
  151. TCriticalSection * FCriticalSection;
  152. virtual TStorage __fastcall GetStorage();
  153. virtual void __fastcall Changed();
  154. virtual void __fastcall SaveData(THierarchicalStorage * Storage, bool All);
  155. virtual void __fastcall LoadData(THierarchicalStorage * Storage);
  156. virtual void __fastcall LoadFrom(THierarchicalStorage * Storage);
  157. virtual void __fastcall CopyData(THierarchicalStorage * Source, THierarchicalStorage * Target);
  158. virtual void __fastcall LoadAdmin(THierarchicalStorage * Storage);
  159. virtual UnicodeString __fastcall GetDefaultKeyFile();
  160. virtual void __fastcall Saved();
  161. void __fastcall CleanupRegistry(const UnicodeString & RegistryPath);
  162. void __fastcall CopyAllStringsInSubKey(
  163. THierarchicalStorage * Source, THierarchicalStorage * Target, const UnicodeString & Name);
  164. bool __fastcall CopySubKey(THierarchicalStorage * Source, THierarchicalStorage * Target, const UnicodeString & Name);
  165. UnicodeString __fastcall BannerHash(const UnicodeString & Banner);
  166. void __fastcall SetBannerData(const UnicodeString & SessionKey, const UnicodeString & BannerHash, unsigned int Params);
  167. void __fastcall GetBannerData(const UnicodeString & SessionKey, UnicodeString & BannerHash, unsigned int & Params);
  168. static UnicodeString __fastcall PropertyToKey(const UnicodeString & Property);
  169. virtual void __fastcall DoSave(bool All, bool Explicit);
  170. UnicodeString __fastcall FormatFingerprintKey(const UnicodeString & SiteKey, const UnicodeString & FingerprintType);
  171. THierarchicalStorage * OpenDirectoryStatisticsCache(bool CanCreate);
  172. UnicodeString __fastcall GetDirectoryStatisticsCacheKey(
  173. const UnicodeString & SessionKey, const UnicodeString & Path, const TCopyParamType & CopyParam);
  174. virtual bool __fastcall GetConfirmOverwriting();
  175. virtual void __fastcall SetConfirmOverwriting(bool value);
  176. bool __fastcall GetConfirmResume();
  177. void __fastcall SetConfirmResume(bool value);
  178. bool __fastcall GetAutoReadDirectoryAfterOp();
  179. void __fastcall SetAutoReadDirectoryAfterOp(bool value);
  180. virtual bool __fastcall GetRememberPassword();
  181. UnicodeString __fastcall GetReleaseType();
  182. UnicodeString __fastcall LoadCustomIniFileStorageName();
  183. void __fastcall SaveCustomIniFileStorageName();
  184. UnicodeString __fastcall GetRegistryStorageOverrideKey();
  185. TStrings * GetCaches();
  186. virtual UnicodeString __fastcall ModuleFileName();
  187. UnicodeString __fastcall GetFileFileInfoString(const UnicodeString Key,
  188. const UnicodeString FileName, bool AllowEmpty = false);
  189. void * __fastcall GetFileApplicationInfo(const UnicodeString FileName);
  190. UnicodeString __fastcall GetFileProductVersion(const UnicodeString FileName);
  191. UnicodeString __fastcall GetFileProductName(const UnicodeString FileName);
  192. UnicodeString __fastcall GetFileCompanyName(const UnicodeString FileName);
  193. __property bool PermanentLogging = { read=GetLogging, write=SetLogging };
  194. __property UnicodeString PermanentLogFileName = { read=GetLogFileName, write=SetLogFileName };
  195. __property bool PermanentLogActions = { read=GetLogActions, write=SetLogActions };
  196. __property UnicodeString PermanentActionsLogFileName = { read=GetPermanentActionsLogFileName, write=SetActionsLogFileName };
  197. __property int PermanentLogProtocol = { read=FPermanentLogProtocol, write=SetLogProtocol };
  198. __property bool PermanentLogSensitive = { read=FPermanentLogSensitive, write=SetLogSensitive };
  199. __property __int64 PermanentLogMaxSize = { read=GetLogMaxSize, write=SetLogMaxSize };
  200. __property int PermanentLogMaxCount = { read=GetLogMaxCount, write=SetLogMaxCount };
  201. public:
  202. __fastcall TConfiguration();
  203. virtual __fastcall ~TConfiguration();
  204. virtual void __fastcall Default();
  205. virtual void __fastcall UpdateStaticUsage();
  206. void __fastcall Load(THierarchicalStorage * Storage);
  207. void __fastcall Save();
  208. void __fastcall SaveExplicit();
  209. void __fastcall MoveStorage(TStorage AStorage, const UnicodeString & ACustomIniFileStorageName);
  210. void __fastcall ScheduleCustomIniFileStorageUse(const UnicodeString & ACustomIniFileStorageName);
  211. void __fastcall SetExplicitIniFileStorageName(const UnicodeString & FileName);
  212. void __fastcall SetNulStorage();
  213. void __fastcall SetDefaultStorage();
  214. UnicodeString __fastcall GetAutomaticIniFileStorageName(bool ReadingOnly);
  215. UnicodeString __fastcall GetDefaultIniFileExportPath();
  216. UnicodeString __fastcall GetIniFileParamValue();
  217. void __fastcall Export(const UnicodeString & FileName);
  218. void __fastcall Import(const UnicodeString & FileName);
  219. void __fastcall CleanupConfiguration();
  220. void __fastcall CleanupIniFile();
  221. void __fastcall CleanupCaches();
  222. bool __fastcall HasAnyCache();
  223. void __fastcall CleanupRandomSeedFile();
  224. void __fastcall BeginUpdate();
  225. void __fastcall EndUpdate();
  226. void __fastcall DontSave();
  227. void __fastcall LoadDirectoryChangesCache(const UnicodeString SessionKey,
  228. TRemoteDirectoryChangesCache * DirectoryChangesCache);
  229. void __fastcall SaveDirectoryChangesCache(const UnicodeString SessionKey,
  230. TRemoteDirectoryChangesCache * DirectoryChangesCache);
  231. TStrings * __fastcall LoadDirectoryStatisticsCache(
  232. const UnicodeString & SessionKey, const UnicodeString & Path, const TCopyParamType & CopyParam);
  233. void __fastcall SaveDirectoryStatisticsCache(
  234. const UnicodeString & SessionKey, const UnicodeString & Path, const TCopyParamType & CopyParam, TStrings * DataList);
  235. bool __fastcall ShowBanner(const UnicodeString & SessionKey, const UnicodeString & Banner, unsigned int & Params);
  236. void __fastcall NeverShowBanner(const UnicodeString & SessionKey, const UnicodeString & Banner);
  237. void __fastcall SetBannerParams(const UnicodeString & SessionKey, unsigned int Params);
  238. void __fastcall RememberLastFingerprint(const UnicodeString & SiteKey, const UnicodeString & FingerprintType, const UnicodeString & Fingerprint);
  239. UnicodeString __fastcall LastFingerprint(const UnicodeString & SiteKey, const UnicodeString & FingerprintType);
  240. THierarchicalStorage * CreateConfigStorage();
  241. THierarchicalStorage * CreateConfigRegistryStorage();
  242. virtual THierarchicalStorage * CreateScpStorage(bool & SessionList);
  243. void __fastcall TemporaryLogging(const UnicodeString ALogFileName);
  244. void __fastcall TemporaryActionsLogging(const UnicodeString ALogFileName);
  245. void __fastcall TemporaryLogProtocol(int ALogProtocol);
  246. void __fastcall TemporaryLogSensitive(bool ALogSensitive);
  247. void __fastcall TemporaryLogMaxSize(__int64 ALogMaxSize);
  248. void __fastcall TemporaryLogMaxCount(int ALogMaxCount);
  249. virtual RawByteString __fastcall EncryptPassword(UnicodeString Password, UnicodeString Key);
  250. virtual UnicodeString __fastcall DecryptPassword(RawByteString Password, UnicodeString Key);
  251. virtual RawByteString __fastcall StronglyRecryptPassword(RawByteString Password, UnicodeString Key);
  252. UnicodeString __fastcall GetFileDescription(const UnicodeString & FileName);
  253. UnicodeString __fastcall GetFileVersion(const UnicodeString & FileName);
  254. UnicodeString __fastcall GetFileMimeType(const UnicodeString & FileName);
  255. bool RegistryPathExists(const UnicodeString & RegistryPath);
  256. bool HasLocalPortNumberLimits();
  257. TStoredSessionList * __fastcall SelectFilezillaSessionsForImport(
  258. TStoredSessionList * Sessions, UnicodeString & Error);
  259. bool __fastcall AnyFilezillaSessionForImport(TStoredSessionList * Sessions);
  260. TStoredSessionList * __fastcall SelectKnownHostsSessionsForImport(
  261. TStoredSessionList * Sessions, UnicodeString & Error);
  262. TStoredSessionList * __fastcall SelectKnownHostsSessionsForImport(
  263. TStrings * Lines, TStoredSessionList * Sessions, UnicodeString & Error);
  264. __property TVSFixedFileInfo *FixedApplicationInfo = { read=GetFixedApplicationInfo };
  265. __property void * ApplicationInfo = { read=GetApplicationInfo };
  266. __property TUsage * Usage = { read = FUsage };
  267. __property bool CollectUsage = { read = GetCollectUsage, write = SetCollectUsage };
  268. __property UnicodeString StoredSessionsSubKey = {read=GetStoredSessionsSubKey};
  269. __property UnicodeString PuttyRegistryStorageKey = { read=FPuttyRegistryStorageKey, write=SetPuttyRegistryStorageKey };
  270. __property UnicodeString PuttySessionsKey = { read=GetPuttySessionsKey };
  271. __property UnicodeString PuttySessionsSubKey = { read=GetPuttySessionsSubKey };
  272. __property UnicodeString RandomSeedFile = { read=FRandomSeedFile, write=SetRandomSeedFile };
  273. __property UnicodeString RandomSeedFileName = { read=GetRandomSeedFileName };
  274. __property UnicodeString SshHostKeysSubKey = { read=GetSshHostKeysSubKey };
  275. __property UnicodeString RootKeyStr = { read=GetRootKeyStr };
  276. __property UnicodeString ConfigurationSubKey = { read=GetConfigurationSubKey };
  277. __property TEOLType LocalEOLType = { read = GetLocalEOLType };
  278. __property UnicodeString VersionStr = { read=GetVersionStr };
  279. __property UnicodeString Version = { read=GetVersion };
  280. __property int CompoundVersion = { read=GetCompoundVersion };
  281. __property UnicodeString ProductVersion = { read=GetProductVersion };
  282. __property UnicodeString ProductName = { read=GetProductName };
  283. __property UnicodeString CompanyName = { read=GetCompanyName };
  284. __property bool IsUnofficial = { read = GetIsUnofficial };
  285. __property bool Logging = { read=FLogging, write=SetLogging };
  286. __property UnicodeString LogFileName = { read=FLogFileName, write=SetLogFileName };
  287. __property bool LogToFile = { read=GetLogToFile };
  288. __property bool LogFileAppend = { read=FLogFileAppend, write=SetLogFileAppend };
  289. __property bool LogSensitive = { read=FLogSensitive, write=SetLogSensitive };
  290. __property __int64 LogMaxSize = { read=FLogMaxSize, write=SetLogMaxSize };
  291. __property int LogMaxCount = { read=FLogMaxCount, write=SetLogMaxCount };
  292. __property int LogProtocol = { read=FLogProtocol, write=SetLogProtocol };
  293. __property int ActualLogProtocol = { read=FActualLogProtocol };
  294. __property bool LogActions = { read=FLogActions, write=SetLogActions };
  295. __property bool LogActionsRequired = { read=FLogActionsRequired, write=FLogActionsRequired };
  296. __property UnicodeString ActionsLogFileName = { read=GetActionsLogFileName, write=SetActionsLogFileName };
  297. __property UnicodeString DefaultLogFileName = { read=GetDefaultLogFileName };
  298. __property TNotifyEvent OnChange = { read = FOnChange, write = FOnChange };
  299. __property bool ConfirmOverwriting = { read = GetConfirmOverwriting, write = SetConfirmOverwriting};
  300. __property bool ConfirmResume = { read = GetConfirmResume, write = SetConfirmResume};
  301. __property bool AutoReadDirectoryAfterOp = { read = GetAutoReadDirectoryAfterOp, write = SetAutoReadDirectoryAfterOp};
  302. __property bool RememberPassword = { read = GetRememberPassword };
  303. __property UnicodeString PartialExt = {read=GetPartialExt};
  304. __property int SessionReopenAuto = { read = FSessionReopenAuto, write = SetSessionReopenAuto };
  305. __property int SessionReopenBackground = { read = FSessionReopenBackground, write = SetSessionReopenBackground };
  306. __property int SessionReopenTimeout = { read = FSessionReopenTimeout, write = SetSessionReopenTimeout };
  307. __property int SessionReopenAutoStall = { read = FSessionReopenAutoStall, write = SetSessionReopenAutoStall };
  308. __property int TunnelLocalPortNumberLow = { read = FTunnelLocalPortNumberLow, write = SetTunnelLocalPortNumberLow };
  309. __property int TunnelLocalPortNumberHigh = { read = FTunnelLocalPortNumberHigh, write = SetTunnelLocalPortNumberHigh };
  310. __property int CacheDirectoryChangesMaxSize = { read = FCacheDirectoryChangesMaxSize, write = SetCacheDirectoryChangesMaxSize };
  311. __property bool ShowFtpWelcomeMessage = { read = FShowFtpWelcomeMessage, write = SetShowFtpWelcomeMessage };
  312. __property UnicodeString ExternalIpAddress = { read = FExternalIpAddress, write = SetExternalIpAddress };
  313. __property int LocalPortNumberMin = { read = FLocalPortNumberMin, write = SetLocalPortNumberMin };
  314. __property int LocalPortNumberMax = { read = FLocalPortNumberMax, write = SetLocalPortNumberMax };
  315. __property bool TryFtpWhenSshFails = { read = FTryFtpWhenSshFails, write = SetTryFtpWhenSshFails };
  316. __property int ParallelDurationThreshold = { read = FParallelDurationThreshold, write = SetParallelDurationThreshold };
  317. __property UnicodeString MimeTypes = { read = FMimeTypes, write = SetMimeTypes };
  318. __property int DontReloadMoreThanSessions = { read = FDontReloadMoreThanSessions, write = FDontReloadMoreThanSessions };
  319. __property int ScriptProgressFileNameLimit = { read = FScriptProgressFileNameLimit, write = FScriptProgressFileNameLimit };
  320. __property UnicodeString TimeFormat = { read = GetTimeFormat };
  321. __property TStorage Storage = { read=GetStorage };
  322. __property UnicodeString RegistryStorageKey = { read=GetRegistryStorageKey };
  323. __property UnicodeString CustomIniFileStorageName = { read=FCustomIniFileStorageName };
  324. __property UnicodeString ExplicitIniFileStorageName = { read=FIniFileStorageName };
  325. __property UnicodeString IniFileStorageName = { read=GetIniFileStorageNameForReadingWriting };
  326. __property UnicodeString IniFileStorageNameForReading = { read=GetIniFileStorageNameForReading };
  327. __property TStrings * OptionsStorage = { read = GetOptionsStorage, write = SetOptionsStorage };
  328. __property bool Persistent = { read = GetPersistent };
  329. __property bool ForceSave = { read = FForceSave, write = FForceSave };
  330. __property bool Scripting = { read = FScripting, write = FScripting };
  331. __property UnicodeString DefaultKeyFile = { read = GetDefaultKeyFile };
  332. __property bool DisablePasswordStoring = { read = FDisablePasswordStoring };
  333. __property bool ForceBanners = { read = FForceBanners };
  334. __property bool DisableAcceptingHostKeys = { read = FDisableAcceptingHostKeys };
  335. };
  336. //---------------------------------------------------------------------------
  337. class TShortCuts
  338. {
  339. public:
  340. void __fastcall Add(TShortCut ShortCut);
  341. bool __fastcall Has(TShortCut ShortCut) const;
  342. private:
  343. std::set<TShortCut> FShortCuts;
  344. };
  345. //---------------------------------------------------------------------------
  346. extern const UnicodeString OriginalPuttyRegistryStorageKey;
  347. extern const UnicodeString KittyRegistryStorageKey;
  348. extern const UnicodeString OriginalPuttyExecutable;
  349. extern const UnicodeString KittyExecutable;
  350. //---------------------------------------------------------------------------
  351. extern const UnicodeString Sha1ChecksumAlg;
  352. extern const UnicodeString Sha224ChecksumAlg;
  353. extern const UnicodeString Sha256ChecksumAlg;
  354. extern const UnicodeString Sha384ChecksumAlg;
  355. extern const UnicodeString Sha512ChecksumAlg;
  356. extern const UnicodeString Md5ChecksumAlg;
  357. extern const UnicodeString Crc32ChecksumAlg;
  358. //---------------------------------------------------------------------------
  359. extern const UnicodeString SshFingerprintType;
  360. extern const UnicodeString TlsFingerprintType;
  361. //---------------------------------------------------------------------------
  362. extern const UnicodeString FtpsCertificateStorageKey;
  363. extern const UnicodeString HttpsCertificateStorageKey;
  364. //---------------------------------------------------------------------------
  365. extern const int BelowNormalLogLevels;
  366. //---------------------------------------------------------------------------
  367. #endif