puttyexp.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. int get_ssh_version(Backend * be);
  7. Seat * get_ssh_seat(Plug * plug);
  8. #ifdef WINSCP_SSH
  9. const ssh_cipher * get_cscipher(Backend * be);
  10. const ssh_cipher * get_sccipher(Backend * be);
  11. #endif
  12. const struct ssh_compressor * get_cscomp(Backend * be);
  13. const struct ssh_decompressor * get_sccomp(Backend * be);
  14. #define WINSCP_QUERY_REMMAXPKT 1
  15. #define WINSCP_QUERY_MAIN_CHANNEL 2
  16. #define WINSCP_QUERY_TIMER 3
  17. unsigned int winscp_query(Backend * be, int query);
  18. void md5checksum(const char * buffer, int len, unsigned char output[16]);
  19. typedef const struct ssh_keyalg * cp_ssh_keyalg;
  20. void get_hostkey_algs(int type, int * count, cp_ssh_keyalg ** sign_keys);
  21. void get_macs(int * count, const struct ssh2_macalg * const ** amacs);
  22. int have_any_ssh2_hostkey(Seat * seat, const char * host, int port);
  23. // from wingss.c
  24. #include "ssh\gss.h"
  25. void wingss_cleanup(void);
  26. // from portfwd.c
  27. int is_pfwd(Plug * plug);
  28. Seat * get_pfwd_seat(Plug * plug);
  29. // from winnet.c
  30. void select_result(WPARAM wParam, LPARAM lParam);
  31. // from sshaes.c
  32. typedef void AESContext;
  33. AESContext * aes_make_context();
  34. void aes_free_context(AESContext * ctx);
  35. void aes_iv(AESContext * ctx, const void * iv);
  36. void call_aes_setup(AESContext * ctx, unsigned char * key, int keylen);
  37. void call_aes_sdctr(unsigned char *blk, int len, AESContext * ctx);
  38. // from sshaesold.c
  39. void *aesold_make_context(void);
  40. void aesold_free_context(void *handle);
  41. void call_aesold_setup(void * ctx, int blocklen, unsigned char * key, int keylen);
  42. void call_aesold_encrypt(void * ctx, unsigned int * block);
  43. // from winmisc.c
  44. void win_misc_cleanup();
  45. // from misc.c
  46. const char * get_putty_version();
  47. // from winsecur.c
  48. void win_secur_cleanup(void);
  49. // from sshecc.c
  50. void ec_cleanup(void);
  51. #endif