PuttyIntf.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.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. //---------------------------------------------------------------------------
  35. class TSecureShell;
  36. struct ScpSeat : public Seat
  37. {
  38. TSecureShell * SecureShell;
  39. ScpSeat(TSecureShell * SecureShell);
  40. };
  41. //---------------------------------------------------------------------------
  42. extern THierarchicalStorage * PuttyStorage;
  43. //---------------------------------------------------------------------------
  44. #endif