puttyexp.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #ifndef PUTTY_PUTTYEXP_H
  2. #define PUTTY_PUTTYEXP_H
  3. #include "defs.h"
  4. // from ssh.c
  5. int is_ssh(Plug plug);
  6. void call_ssh_timer(Backend * be);
  7. int get_ssh_version(Backend * be);
  8. void * get_ssh_frontend(Plug plug);
  9. int get_ssh1_compressing(Backend * be);
  10. const struct ssh_cipher * get_cipher(Backend * be);
  11. const struct ssh2_cipher * get_cscipher(Backend * be);
  12. const struct ssh2_cipher * get_sccipher(Backend * be);
  13. const struct ssh_compress * get_cscomp(Backend * be);
  14. const struct ssh_compress * get_sccomp(Backend * be);
  15. int get_ssh_state_closed(Backend * be);
  16. int get_ssh_state_session(Backend * be);
  17. const unsigned int * ssh2_remmaxpkt(Backend * be);
  18. const unsigned int * ssh2_remwindow(Backend * be);
  19. void md5checksum(const char * buffer, int len, unsigned char output[16]);
  20. typedef const struct ssh_keyalg * cp_ssh_keyalg;
  21. void get_hostkey_algs(int * count, cp_ssh_keyalg * SignKeys);
  22. void get_macs(int * count, const struct ssh_mac *** amacs);
  23. // from wingss.c
  24. #ifndef SSH2_GSS_OIDTYPE
  25. #include "sshgss.h"
  26. #endif
  27. // from portfwd.c
  28. int is_pfwd(Plug plug);
  29. Ssh get_pfwd_ssh(Plug plug);
  30. // for winstore.c
  31. #include "winstuff.h"
  32. long reg_open_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  33. long reg_create_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);
  34. long reg_query_winscp_value_ex(HKEY Key, const char * ValueName,
  35. unsigned long * Reserved, unsigned long * Type, unsigned char * Data,
  36. unsigned long * DataSize);
  37. long reg_set_winscp_value_ex(HKEY Key, const char * ValueName, unsigned long Reserved,
  38. unsigned long Type, const unsigned char * Data, unsigned long DataSize);
  39. long reg_close_winscp_key(HKEY Key);
  40. // from winstore.c
  41. void putty_mungestr(const char *in, char *out);
  42. void putty_unmungestr(const char *in, char *out, int outlen);
  43. // from winnet.c
  44. void select_result(WPARAM wParam, LPARAM lParam);
  45. // from sshzlib.c
  46. extern const struct ssh_compress ssh_zlib;
  47. // from sshaes.c
  48. void * call_aes_make_context();
  49. void call_aes_free_context(void * handle);
  50. void call_aes_setup(void * ctx, unsigned char * key, int keylen);
  51. void call_aes_encrypt(void * ctx, unsigned int * block);
  52. void call_aes_decrypt(void * ctx, unsigned int * block);
  53. void call_aes_sdctr(unsigned char *blk, int len, void *ctx);
  54. // from winmisc.c
  55. void win_misc_cleanup();
  56. // from misc.c
  57. const char * get_putty_version();
  58. // from winsecur.c
  59. void win_secur_cleanup(void);
  60. // from sshecc.c
  61. void ec_cleanup(void);
  62. #endif