puttyexp.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. typedef const struct ssh_signkey * cp_ssh_signkey;
  23. void get_hostkey_algs(int * count, cp_ssh_signkey * SignKeys);
  24. void get_macs(int * count, const struct ssh_mac *** amacs);
  25. // from wingss.c
  26. #ifndef SSH2_GSS_OIDTYPE
  27. #include "sshgss.h"
  28. #endif
  29. // from portfwd.c
  30. int is_pfwd(void * handle);
  31. void * get_pfwd_backend(void * handle);
  32. // for winstore.c
  33. #include "winstuff.h"
  34. long reg_open_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  35. long reg_create_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  36. long reg_query_winscp_value_ex(HKEY Key, const char * ValueName,
  37. unsigned long * Reserved, unsigned long * Type, unsigned char * Data,
  38. unsigned long * DataSize);
  39. long reg_set_winscp_value_ex(HKEY Key, const char * ValueName, unsigned long Reserved,
  40. unsigned long Type, const unsigned char * Data, unsigned long DataSize);
  41. long reg_close_winscp_key(HKEY Key);
  42. // from winstore.c
  43. void putty_mungestr(const char *in, char *out);
  44. void putty_unmungestr(const char *in, char *out, int outlen);
  45. // from winnet.c
  46. void select_result(WPARAM wParam, LPARAM lParam);
  47. // from sshzlib.c
  48. extern const struct ssh_compress ssh_zlib;
  49. // from sshaes.c
  50. void * call_aes_make_context();
  51. void call_aes_free_context(void * handle);
  52. void call_aes_setup(void * ctx, int blocklen, unsigned char * key, int keylen);
  53. void call_aes_encrypt(void * ctx, unsigned int * block);
  54. void call_aes_decrypt(void * ctx, unsigned int * block);
  55. void call_aes_sdctr(unsigned char *blk, int len, void *ctx);
  56. void aes_iv(void *handle, unsigned char *iv);
  57. // from sshsha.c
  58. void call_sha1_key_internal(void * handle, unsigned char * key, int len);
  59. // from winmisc.c
  60. void win_misc_cleanup();
  61. // from misc.c
  62. const char * get_putty_version();
  63. // from winsecur.c
  64. void win_secur_cleanup(void);
  65. // from sshecc.c
  66. void ec_cleanup(void);
  67. #endif