1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 09:07:33 -05:00

SSH port forwarding! How cool is that?

Only currently works on SSH1; SSH2 should be doable but it's late
and I have other things to do tonight. The Cool Guy award for this
one goes to Nicolas Barry, for doing most of the work and actually
understanding the code he was adding to.

[originally from svn r1176]
This commit is contained in:
Simon Tatham
2001-08-08 20:44:35 +00:00
parent 4d3aad22f5
commit 50766ce729
13 changed files with 738 additions and 40 deletions

4
ssh.h
View File

@ -1,6 +1,7 @@
#include <string.h>
#include "puttymem.h"
#include "network.h"
/*
* Useful thing.
@ -199,6 +200,8 @@ void random_add_noise(void *noise, int length);
void random_add_heavynoise(void *noise, int length);
void logevent(char *);
void *new_sock_channel(Socket s); // allocates and register a new channel for port forwarding
void ssh_send_port_open(void *channel, char *hostname, int port, char *org);
Bignum copybn(Bignum b);
Bignum bn_power_2(int n);
@ -271,6 +274,7 @@ int rsa_generate(struct RSAKey *key, int bits, progfn_t pfn,
Bignum primegen(int bits, int modulus, int residue, int phase,
progfn_t pfn, void *pfnparam);
/*
* zlib compression.
*/