projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The specific SSH cipher algorithms supported by PuTTY weren't listed anywhere
[u/mdw/putty]
/
portfwd.c
diff --git
a/portfwd.c
b/portfwd.c
index
825ee8f
..
00132ec
100644
(file)
--- a/
portfwd.c
+++ b/
portfwd.c
@@
-86,7
+86,7
@@
struct PFwdPrivate {
int buflen;
};
int buflen;
};
-static int pfd_closing(Plug plug, char *error_msg, int error_code,
+static int pfd_closing(Plug plug, c
onst c
har *error_msg, int error_code,
int calling_back)
{
struct PFwdPrivate *pr = (struct PFwdPrivate *) plug;
int calling_back)
{
struct PFwdPrivate *pr = (struct PFwdPrivate *) plug;
@@
-220,7
+220,7
@@
static int pfd_receive(Plug plug, int urgent, char *data, int len)
}
if (pr->dynamic == 0x5001) {
}
if (pr->dynamic == 0x5001) {
- int atype, alen;
+ int atype, alen
= 0
;
if (pr->port < 6) continue;
atype = (unsigned char)pr->hostname[3];
if (atype == 1) /* IPv4 address */
if (pr->port < 6) continue;
atype = (unsigned char)pr->hostname[3];
if (atype == 1) /* IPv4 address */
@@
-331,8
+331,8
@@
static void pfd_sent(Plug plug, int bufsize)
/*
* Called when receiving a PORT OPEN from the server
*/
/*
* Called when receiving a PORT OPEN from the server
*/
-c
har *pfd_newconnect(Socket *s, char *hostname, int port, void *c
,
- const Config *cfg)
+c
onst char *pfd_newconnect(Socket *s, char *hostname, int port
,
+
void *c,
const Config *cfg)
{
static const struct plug_function_table fn_table = {
pfd_closing,
{
static const struct plug_function_table fn_table = {
pfd_closing,
@@
-342,7
+342,8
@@
char *pfd_newconnect(Socket *s, char *hostname, int port, void *c,
};
SockAddr addr;
};
SockAddr addr;
- char *err, *dummy_realhost;
+ const char *err;
+ char *dummy_realhost;
struct PFwdPrivate *pr;
/*
struct PFwdPrivate *pr;
/*
@@
-380,7
+381,7
@@
char *pfd_newconnect(Socket *s, char *hostname, int port, void *c,
called when someone connects to the local port
*/
called when someone connects to the local port
*/
-static int pfd_accepting(Plug p,
void *
sock)
+static int pfd_accepting(Plug p,
OSSocket
sock)
{
static const struct plug_function_table fn_table = {
pfd_closing,
{
static const struct plug_function_table fn_table = {
pfd_closing,
@@
-390,7
+391,7
@@
static int pfd_accepting(Plug p, void *sock)
};
struct PFwdPrivate *pr, *org;
Socket s;
};
struct PFwdPrivate *pr, *org;
Socket s;
- char *err;
+ c
onst c
har *err;
org = (struct PFwdPrivate *)p;
pr = snew(struct PFwdPrivate);
org = (struct PFwdPrivate *)p;
pr = snew(struct PFwdPrivate);
@@
-437,8
+438,8
@@
static int pfd_accepting(Plug p, void *sock)
/* Add a new forwarding from port -> desthost:destport
sets up a listener on the local machine on (srcaddr:)port
*/
/* Add a new forwarding from port -> desthost:destport
sets up a listener on the local machine on (srcaddr:)port
*/
-c
har *pfd_addforward(char *desthost, int destport, char *srcaddr, int port
,
- void *backhandle, const Config *cfg)
+c
onst char *pfd_addforward(char *desthost, int destport, char *srcaddr
,
+
int port,
void *backhandle, const Config *cfg)
{
static const struct plug_function_table fn_table = {
pfd_closing,
{
static const struct plug_function_table fn_table = {
pfd_closing,
@@
-447,7
+448,7
@@
char *pfd_addforward(char *desthost, int destport, char *srcaddr, int port,
pfd_accepting
};
pfd_accepting
};
- char *err;
+ c
onst c
har *err;
struct PFwdPrivate *pr;
Socket s;
struct PFwdPrivate *pr;
Socket s;