зеркало из https://github.com/github/putty.git
Move x11fwd and portfwd prototypes from ssh.c into ssh.h so they can be seen
by (and checked against) the definitions. [originally from svn r2474]
This commit is contained in:
Родитель
1e9b54cb1f
Коммит
3f055f22d8
|
@ -70,8 +70,6 @@ struct PFwdPrivate {
|
|||
struct pfwd_queue *waiting;
|
||||
};
|
||||
|
||||
void pfd_close(Socket s);
|
||||
|
||||
|
||||
static int pfd_closing(Plug plug, char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
|
|
17
ssh.c
17
ssh.c
|
@ -291,23 +291,6 @@ enum { PKT_END, PKT_INT, PKT_CHAR, PKT_DATA, PKT_STR, PKT_BIGNUM };
|
|||
|
||||
typedef struct ssh_tag *Ssh;
|
||||
|
||||
extern char *x11_init(Socket *, char *, void *, void *);
|
||||
extern void x11_close(Socket);
|
||||
extern int x11_send(Socket, char *, int);
|
||||
extern void *x11_invent_auth(char *, int, char *, int);
|
||||
extern void x11_unthrottle(Socket s);
|
||||
extern void x11_override_throttle(Socket s, int enable);
|
||||
extern int x11_get_screen_number(char *display);
|
||||
|
||||
extern char *pfd_newconnect(Socket * s, char *hostname, int port, void *c);
|
||||
extern char *pfd_addforward(char *desthost, int destport, char *srcaddr,
|
||||
int port, void *backhandle);
|
||||
extern void pfd_close(Socket s);
|
||||
extern int pfd_send(Socket s, char *data, int len);
|
||||
extern void pfd_confirm(Socket s);
|
||||
extern void pfd_unthrottle(Socket s);
|
||||
extern void pfd_override_throttle(Socket s, int enable);
|
||||
|
||||
static void ssh2_pkt_init(Ssh, int pkt_type);
|
||||
static void ssh2_pkt_addbool(Ssh, unsigned char value);
|
||||
static void ssh2_pkt_adduint32(Ssh, unsigned long value);
|
||||
|
|
19
ssh.h
19
ssh.h
|
@ -254,6 +254,25 @@ void logevent(void *, char *);
|
|||
void *new_sock_channel(void *handle, Socket s);
|
||||
void ssh_send_port_open(void *channel, char *hostname, int port, char *org);
|
||||
|
||||
/* Exports from portfwd.c */
|
||||
extern char *pfd_newconnect(Socket * s, char *hostname, int port, void *c);
|
||||
extern char *pfd_addforward(char *desthost, int destport, char *srcaddr,
|
||||
int port, void *backhandle);
|
||||
extern void pfd_close(Socket s);
|
||||
extern int pfd_send(Socket s, char *data, int len);
|
||||
extern void pfd_confirm(Socket s);
|
||||
extern void pfd_unthrottle(Socket s);
|
||||
extern void pfd_override_throttle(Socket s, int enable);
|
||||
|
||||
/* Exports from x11fwd.c */
|
||||
extern char *x11_init(Socket *, char *, void *, void *);
|
||||
extern void x11_close(Socket);
|
||||
extern int x11_send(Socket, char *, int);
|
||||
extern void *x11_invent_auth(char *, int, char *, int);
|
||||
extern void x11_unthrottle(Socket s);
|
||||
extern void x11_override_throttle(Socket s, int enable);
|
||||
extern int x11_get_screen_number(char *display);
|
||||
|
||||
Bignum copybn(Bignum b);
|
||||
Bignum bn_power_2(int n);
|
||||
void bn_restore_invariant(Bignum b);
|
||||
|
|
2
x11fwd.c
2
x11fwd.c
|
@ -69,8 +69,6 @@ struct X11Private {
|
|||
Socket s;
|
||||
};
|
||||
|
||||
void x11_close(Socket s);
|
||||
|
||||
void *x11_invent_auth(char *proto, int protomaxlen,
|
||||
char *data, int datamaxlen)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче