| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | #ifndef PUTTY_PUTTYEXP_H#define PUTTY_PUTTYEXP_H#include "defs.h"// from ssh.cint is_ssh(Plug * plug);int get_ssh_version(Backend * be);Seat * get_ssh_seat(Plug * plug);#ifdef WINSCP_SSHconst ssh_cipher * get_cipher(Backend * be);const ssh_cipher * get_cscipher(Backend * be);const ssh_cipher * get_sccipher(Backend * be);#endifconst struct ssh_compressor * get_cscomp(Backend * be);const struct ssh_decompressor * get_sccomp(Backend * be);#define WINSCP_QUERY_REMMAXPKT 1#define WINSCP_QUERY_MAIN_CHANNEL 2#define WINSCP_QUERY_TIMER 3unsigned int winscp_query(Backend * be, int query);void md5checksum(const char * buffer, int len, unsigned char output[16]);typedef const struct ssh_keyalg * cp_ssh_keyalg;void get_hostkey_algs(int * count, cp_ssh_keyalg * SignKeys);void get_macs(int * count, const struct ssh2_macalg *** amacs);// from wingss.c#ifndef SSH2_GSS_OIDTYPE#include "sshgss.h"#endif// from portfwd.cint is_pfwd(Plug * plug);Seat * get_pfwd_seat(Plug * plug);// for winstore.c#include "winstuff.h"long reg_open_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);long reg_create_winscp_key(HKEY Key, const char * SubKey, HKEY * Result);long reg_query_winscp_value_ex(HKEY Key, const char * ValueName,  unsigned long * Reserved, unsigned long * Type, unsigned char * Data,  unsigned long * DataSize);long reg_set_winscp_value_ex(HKEY Key, const char * ValueName, unsigned long Reserved,  unsigned long Type, const unsigned char * Data, unsigned long DataSize);long reg_close_winscp_key(HKEY Key);// from winnet.cvoid select_result(WPARAM wParam, LPARAM lParam);// from sshaes.ctypedef void AESContext;AESContext * aes_make_context();void aes_free_context(AESContext * ctx);void aes_iv(AESContext * ctx, const void * iv);void call_aes_setup(AESContext * ctx, unsigned char * key, int keylen);void call_aes_sdctr(unsigned char *blk, int len, AESContext * ctx);// from sshaesold.cvoid *aesold_make_context(void);void aesold_free_context(void *handle);void call_aesold_setup(void * ctx, int blocklen, unsigned char * key, int keylen);void call_aesold_encrypt(void * ctx, unsigned int * block);// from winmisc.cvoid win_misc_cleanup();// from misc.cconst char * get_putty_version();// from winsecur.cvoid win_secur_cleanup(void);// from sshecc.cvoid ec_cleanup(void);#endif
 |