diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-10-15 17:17:36 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-10-15 17:17:36 +0200 |
commit | 7b7280e728466f2ce9e9faeb840093224ef5d3e3 (patch) | |
tree | 770d42898c9a0e0730d5b7c4d50c9473c2a0b472 /libssh/server.c | |
parent | 2523ed0779843e6074717cdcdf8bcaffb4b87ad9 (diff) | |
download | libssh-7b7280e728466f2ce9e9faeb840093224ef5d3e3.tar.gz libssh-7b7280e728466f2ce9e9faeb840093224ef5d3e3.tar.xz libssh-7b7280e728466f2ce9e9faeb840093224ef5d3e3.zip |
Added option to set log_verbosity in the server.
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libssh/server.c b/libssh/server.c index c992d9a6..c4ecff59 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -131,6 +131,8 @@ ssh_bind ssh_bind_new(void) { ZERO_STRUCTP(ptr); ptr->bindfd = -1; ptr->bindport= 22; + ptr->log_verbosity = 0; + return ptr; } @@ -229,10 +231,6 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) { session->server = 1; session->version = 2; - /* TODO: is wanted methods enough? */ -#if 0 - session->options = ssh_options_copy(sshbind->options); -#endif /* copy options */ for (i = 0; i < 10; ++i) { if (sshbind->wanted_methods[i]) { @@ -255,9 +253,9 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) { return SSH_ERROR; } } -/* TODO FIXME this doesn't work - session->log_verbosity = session->options->log_verbosity; -*/ + + session->log_verbosity = sshbind->log_verbosity; + ssh_socket_free(session->socket); session->socket = ssh_socket_new(session); if (session->socket == NULL) { |