puttyexp.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef PUTTY_PUTTYEXP_H
  2. #define PUTTY_PUTTYEXP_H
  3. // from ssh.c
  4. void ssh_close(void * handle);
  5. int is_ssh(void * handle);
  6. void call_ssh_timer(void * handle);
  7. int get_ssh_version(void * handle);
  8. void * get_ssh_frontend(void * handle);
  9. int get_ssh1_compressing(void * handle);
  10. const struct ssh_cipher * get_cipher(void * handle);
  11. const struct ssh2_cipher * get_cscipher(void * handle);
  12. const struct ssh2_cipher * get_sccipher(void * handle);
  13. const struct ssh_compress * get_cscomp(void * handle);
  14. const struct ssh_compress * get_sccomp(void * handle);
  15. int get_ssh_state(void * handle);
  16. int get_ssh_state_closed(void * handle);
  17. int get_ssh_state_session(void * handle);
  18. int get_ssh_exitcode(void * handle);
  19. const unsigned int * ssh2_remmaxpkt(void * handle);
  20. const unsigned int * ssh2_remwindow(void * handle);
  21. void md5checksum(const char * buffer, int len, unsigned char output[16]);
  22. int has_gssapi_ssh();
  23. // from portfwd.c
  24. int is_pfwd(void * handle);
  25. int is_pfwd_listener(void * handle);
  26. void * get_pfwd_backend(void * handle);
  27. // for winstore.c
  28. #include "winstuff.h"
  29. long reg_open_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  30. long reg_create_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  31. long reg_query_winscp_value_ex(HKEY Key, const char * ValueName,
  32. unsigned long * Reserved, unsigned long * Type, unsigned char * Data,
  33. unsigned long * DataSize);
  34. long reg_set_winscp_value_ex(HKEY Key, const char * ValueName, unsigned long Reserved,
  35. unsigned long Type, const unsigned char * Data, unsigned long DataSize);
  36. long reg_close_winscp_key(HKEY Key);
  37. // from winstore.c
  38. void putty_mungestr(const char *in, char *out);
  39. void putty_unmungestr(const char *in, char *out, int outlen);
  40. void putty_get_seedpath(void);
  41. char * seedpath_ptr();
  42. int seedpath_size();
  43. // from winnet.c
  44. int select_result(WPARAM wParam, LPARAM lParam);
  45. // from utf8.c
  46. #include "charset/charset.h"
  47. typedef struct charset_spec charset_spec;
  48. void read_utf8(charset_spec const *, long int, charset_state *,
  49. void (*)(void *, long int), void *);
  50. void write_utf8(charset_spec const *, long int,
  51. charset_state *, void (*)(void *, long int), void *);
  52. // from sshzlib.c
  53. extern const struct ssh_compress ssh_zlib;
  54. #endif