ssh: cleanup debug messages
This commit is contained in:
parent
9c50712d64
commit
882f1c492e
1 changed files with 4 additions and 12 deletions
|
@ -622,9 +622,10 @@ static char *authnext;
|
||||||
int
|
int
|
||||||
authok(char *meth)
|
authok(char *meth)
|
||||||
{
|
{
|
||||||
if(authnext == nil || strstr(authnext, meth) != nil)
|
int ok = authnext == nil || strstr(authnext, meth) != nil;
|
||||||
return 1;
|
if(debug)
|
||||||
return 0;
|
fprint(2, "userauth %s %s\n", meth, ok ? "ok" : "skipped");
|
||||||
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -659,9 +660,6 @@ pubkeyauth(void)
|
||||||
if(!authok(authmeth))
|
if(!authok(authmeth))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if(debug)
|
|
||||||
fprint(2, "%s...\n", authmeth);
|
|
||||||
|
|
||||||
if((afd = open("/mnt/factotum/rpc", ORDWR)) < 0)
|
if((afd = open("/mnt/factotum/rpc", ORDWR)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
if((rpc = auth_allocrpc(afd)) == nil){
|
if((rpc = auth_allocrpc(afd)) == nil){
|
||||||
|
@ -774,9 +772,6 @@ passauth(void)
|
||||||
if(!authok(authmeth))
|
if(!authok(authmeth))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if(debug)
|
|
||||||
fprint(2, "%s...\n", authmeth);
|
|
||||||
|
|
||||||
up = auth_getuserpasswd(auth_getkey, "proto=pass servive=ssh user=%q server=%q thumb=%q",
|
up = auth_getuserpasswd(auth_getkey, "proto=pass servive=ssh user=%q server=%q thumb=%q",
|
||||||
user, host, thumb);
|
user, host, thumb);
|
||||||
if(up == nil)
|
if(up == nil)
|
||||||
|
@ -818,9 +813,6 @@ kbintauth(void)
|
||||||
if(!authok(authmeth))
|
if(!authok(authmeth))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if(debug)
|
|
||||||
fprint(2, "%s...\n", authmeth);
|
|
||||||
|
|
||||||
sendpkt("bsssss", MSG_USERAUTH_REQUEST,
|
sendpkt("bsssss", MSG_USERAUTH_REQUEST,
|
||||||
user, strlen(user),
|
user, strlen(user),
|
||||||
service, strlen(service),
|
service, strlen(service),
|
||||||
|
|
Loading…
Reference in a new issue