diff options
author | Julien Dessaux | 2018-06-20 13:23:48 +0200 |
---|---|---|
committer | Julien Dessaux | 2018-06-20 13:23:48 +0200 |
commit | 8c04f0d56d88ebea808d5505dcee07e8d197e360 (patch) | |
tree | 81f8e3f59c17ab234eb95c7812adb0054779a117 /src/proxy.h | |
parent | Initial import with working simple server based on libssh examples (diff) | |
download | bastion-8c04f0d56d88ebea808d5505dcee07e8d197e360.tar.gz bastion-8c04f0d56d88ebea808d5505dcee07e8d197e360.tar.bz2 bastion-8c04f0d56d88ebea808d5505dcee07e8d197e360.zip |
Made a working ssh proxy server
Diffstat (limited to '')
-rw-r--r-- | src/proxy.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/proxy.h b/src/proxy.h new file mode 100644 index 0000000..3756544 --- /dev/null +++ b/src/proxy.h @@ -0,0 +1,18 @@ +#ifndef PROXY_H_ +#define PROXY_H_ + +#include <libssh/libssh.h> + +#include "session.h" + +/* A userdata struct for channel. */ +struct proxy_channel_data_struct { + /* Event which is used to poll */ + ssh_event event; + ssh_session my_session; + ssh_channel my_channel; + ssh_channel client_channel; +}; +void handle_proxy_session(ssh_event event, ssh_session session, ssh_channel my_channel, const char * hostname); + +#endif |