PuttyIntf.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //---------------------------------------------------------------------------
  2. #ifndef PuttyIntfH
  3. #define PuttyIntfH
  4. //---------------------------------------------------------------------------
  5. void __fastcall PuttyInitialize();
  6. void __fastcall PuttyFinalize();
  7. //---------------------------------------------------------------------------
  8. void __fastcall DontSaveRandomSeed();
  9. //---------------------------------------------------------------------------
  10. #include "PuttyTools.h"
  11. //---------------------------------------------------------------------------
  12. #define MPEXT
  13. extern "C"
  14. {
  15. #include <putty.h>
  16. // To rename ssh1_cipheralg::new member, what is a keyword in C++
  17. #define new _new_
  18. #include <ssh.h>
  19. #undef new
  20. #include <puttyexp.h>
  21. #include <proxy\proxy.h>
  22. #include <storage.h>
  23. // Defined in misc.h - Conflicts with std::min/max
  24. #undef min
  25. #undef max
  26. // Defined in marshal.h - Conflicts with xml.xmldom.hpp
  27. #undef get_data
  28. }
  29. //---------------------------------------------------------------------------
  30. UnicodeString GetCipherName(const ssh_cipher * Cipher);
  31. UnicodeString GetCompressorName(const ssh_compressor * Compressor);
  32. UnicodeString GetDecompressorName(const ssh_decompressor * Decompressor);
  33. void PuttyDefaults(Conf * conf);
  34. int GetCipherGroup(const ssh_cipher * TheCipher);
  35. //---------------------------------------------------------------------------
  36. class TSecureShell;
  37. struct ScpSeat : public Seat
  38. {
  39. TSecureShell * SecureShell;
  40. ScpSeat(TSecureShell * SecureShell);
  41. };
  42. //---------------------------------------------------------------------------
  43. extern std::unique_ptr<TCriticalSection> PuttyStorageSection;
  44. extern THierarchicalStorage * PuttyStorage;
  45. //---------------------------------------------------------------------------
  46. #endif