diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-11-09 15:53:19 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-11-09 15:53:19 +0100 |
commit | afd75ad6e7353df58d2a55376cc54ab8423e09e7 (patch) | |
tree | 50f0dd13abf54a544934dad833b7af52738e64b4 | |
parent | 486c6e8d4af82c1c8eb90d61da6e3acf9db4179e (diff) | |
download | libpam-x2go-afd75ad6e7353df58d2a55376cc54ab8423e09e7.tar.gz libpam-x2go-afd75ad6e7353df58d2a55376cc54ab8423e09e7.tar.bz2 libpam-x2go-afd75ad6e7353df58d2a55376cc54ab8423e09e7.zip |
add log verbosity
-rw-r--r-- | src/x2go-auth-check.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x2go-auth-check.c b/src/x2go-auth-check.c index ac4ef2e..936bea9 100644 --- a/src/x2go-auth-check.c +++ b/src/x2go-auth-check.c @@ -26,6 +26,8 @@ int main (int argc, char * argv[]) { + int verbosity = SSH_LOG_PROTOCOL; + char password[512]; if (argc != 4) { printf("Not enough params"); @@ -48,6 +50,7 @@ main (int argc, char * argv[]) ssh_session auth_check_ssh_session = ssh_new(); + ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity ); ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_HOST, &argv[1] ); ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_USER, &argv[2] ); @@ -69,6 +72,7 @@ main (int argc, char * argv[]) int rc; rc = ssh_connect (auth_check_ssh_session); + printf ("%i\n", rc); if ( rc != SSH_OK ) { ssh_free(auth_check_ssh_session); return -1; |