diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-04-21 00:09:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-04-21 00:09:30 +0200 |
commit | 882f1c492e86ff15c6dbc40e860184cf9ce375e3 (patch) | |
tree | a3c5e9ac47382c738bd28bb8e19be2a7c7774631 /sys/src/cmd/ssh.c | |
parent | 9c50712d64a5b58cd67970a58702138ddcd31e8d (diff) |
ssh: cleanup debug messages
Diffstat (limited to 'sys/src/cmd/ssh.c')
-rw-r--r-- | sys/src/cmd/ssh.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c index 276fd4abe..6950eb65b 100644 --- a/sys/src/cmd/ssh.c +++ b/sys/src/cmd/ssh.c @@ -622,9 +622,10 @@ static char *authnext; int authok(char *meth) { - if(authnext == nil || strstr(authnext, meth) != nil) - return 1; - return 0; + int ok = authnext == nil || strstr(authnext, meth) != nil; +if(debug) + fprint(2, "userauth %s %s\n", meth, ok ? "ok" : "skipped"); + return ok; } int @@ -659,9 +660,6 @@ pubkeyauth(void) if(!authok(authmeth)) return -1; -if(debug) - fprint(2, "%s...\n", authmeth); - if((afd = open("/mnt/factotum/rpc", ORDWR)) < 0) return -1; if((rpc = auth_allocrpc(afd)) == nil){ @@ -774,9 +772,6 @@ passauth(void) if(!authok(authmeth)) return -1; -if(debug) - fprint(2, "%s...\n", authmeth); - up = auth_getuserpasswd(auth_getkey, "proto=pass servive=ssh user=%q server=%q thumb=%q", user, host, thumb); if(up == nil) @@ -818,9 +813,6 @@ kbintauth(void) if(!authok(authmeth)) return -1; -if(debug) - fprint(2, "%s...\n", authmeth); - sendpkt("bsssss", MSG_USERAUTH_REQUEST, user, strlen(user), service, strlen(service), |