diff options
author | Julien Dessaux | 2018-07-31 08:52:51 +0200 |
---|---|---|
committer | Julien Dessaux | 2018-07-31 08:52:51 +0200 |
commit | 5975503d881f5dab86e85a4b680b9e96673256eb (patch) | |
tree | a08578a636ed2a8d4a77da3240fbed1daaf06bcb /src/session.c | |
parent | Made a working ssh proxy server (diff) | |
download | bastion-5975503d881f5dab86e85a4b680b9e96673256eb.tar.gz bastion-5975503d881f5dab86e85a4b680b9e96673256eb.tar.bz2 bastion-5975503d881f5dab86e85a4b680b9e96673256eb.zip |
Code cleaning and added error handling
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c index 90e2855..22d10de 100644 --- a/src/session.c +++ b/src/session.c @@ -12,7 +12,7 @@ #include "proxy.h" #include "session.h" -int auth_pubkey(ssh_session session, const char *user, +static int auth_pubkey(ssh_session session, const char *user, struct ssh_key_struct *pubkey, char signature_state, void *userdata) { struct session_data_struct *sdata = (struct session_data_struct *) userdata; @@ -51,7 +51,7 @@ int auth_pubkey(ssh_session session, const char *user, } } -ssh_channel channel_open(ssh_session session, void *userdata) { +static ssh_channel channel_open(ssh_session session, void *userdata) { struct session_data_struct *sdata = (struct session_data_struct *) userdata; if (sdata->channel == NULL) { |