aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorJulien Dessaux2018-06-20 13:23:48 +0200
committerJulien Dessaux2018-06-20 13:23:48 +0200
commit8c04f0d56d88ebea808d5505dcee07e8d197e360 (patch)
tree81f8e3f59c17ab234eb95c7812adb0054779a117 /src/util.h
parentInitial import with working simple server based on libssh examples (diff)
downloadbastion-8c04f0d56d88ebea808d5505dcee07e8d197e360.tar.gz
bastion-8c04f0d56d88ebea808d5505dcee07e8d197e360.tar.bz2
bastion-8c04f0d56d88ebea808d5505dcee07e8d197e360.zip
Made a working ssh proxy server
Diffstat (limited to '')
-rw-r--r--src/util.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/util.h b/src/util.h
deleted file mode 100644
index 48a83ff..0000000
--- a/src/util.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef _UTIL_H_
-#define _UTIL_H_
-
-#include <libssh/libssh.h>
-
-/* A userdata struct for channel. */
-struct channel_data_struct {
- /* pid of the child process the channel will spawn. */
- pid_t pid;
- /* For PTY allocation */
- socket_t pty_master;
- socket_t pty_slave;
- /* For communication with the child process. */
- socket_t child_stdin;
- socket_t child_stdout;
- /* Only used for subsystem and exec requests. */
- socket_t child_stderr;
- /* Event which is used to poll the above descriptors. */
- ssh_event event;
- /* Terminal size struct. */
- struct winsize *winsize;
-};
-
-/* A userdata struct for session. */
-struct session_data_struct {
- /* Pointer to the channel the session will allocate. */
- ssh_channel channel;
- int auth_attempts;
- int authenticated;
-};
-
-#endif