puttyexp.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. void sspi_init();
  23. void sspi_cleanup();
  24. int has_gssapi_ssh();
  25. // from portfwd.c
  26. int is_pfwd(void * handle);
  27. int is_pfwd_listener(void * handle);
  28. void * get_pfwd_backend(void * handle);
  29. // for winstore.c
  30. #include "winstuff.h"
  31. long reg_open_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  32. long reg_create_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  33. long reg_query_winscp_value_ex(HKEY Key, const char * ValueName,
  34. unsigned long * Reserved, unsigned long * Type, unsigned char * Data,
  35. unsigned long * DataSize);
  36. long reg_set_winscp_value_ex(HKEY Key, const char * ValueName, unsigned long Reserved,
  37. unsigned long Type, const unsigned char * Data, unsigned long DataSize);
  38. long reg_close_winscp_key(HKEY Key);
  39. // from winstore.c
  40. void putty_mungestr(const char *in, char *out);
  41. void putty_unmungestr(const char *in, char *out, int outlen);
  42. // from winnet.c
  43. int select_result(WPARAM wParam, LPARAM lParam);
  44. // from utf8.c
  45. #include "charset/charset.h"
  46. typedef struct charset_spec charset_spec;
  47. void read_utf8(charset_spec const *, long int, charset_state *,
  48. void (*)(void *, long int), void *);
  49. void write_utf8(charset_spec const *, long int,
  50. charset_state *, void (*)(void *, long int), void *);
  51. // from sshzlib.c
  52. extern const struct ssh_compress ssh_zlib;
  53. #endif