mirror of https://github.com/wolfSSL/wolfssh.git
Clean up some awkward debug logging with respect to userauth.
parent
5555aa05f2
commit
21f54b0599
|
@ -367,14 +367,13 @@ static int wsUserAuth(byte authType,
|
|||
|
||||
#ifdef DEBUG_WOLFSSH
|
||||
/* inspect supported types from server */
|
||||
printf("Server supports ");
|
||||
printf("Server supports:\n");
|
||||
if (authData->type & WOLFSSH_USERAUTH_PASSWORD) {
|
||||
printf("password authentication");
|
||||
printf(" - password\n");
|
||||
}
|
||||
if (authData->type & WOLFSSH_USERAUTH_PUBLICKEY) {
|
||||
printf(" and public key authentication");
|
||||
printf(" - publickey\n");
|
||||
}
|
||||
printf("\n");
|
||||
printf("wolfSSH requesting to use type %d\n", authType);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -485,14 +485,13 @@ static int wsUserAuth(byte authType,
|
|||
|
||||
#ifdef DEBUG_WOLFSSH
|
||||
/* inspect supported types from server */
|
||||
printf("Server supports ");
|
||||
printf("Server supports authentication:\n");
|
||||
if (authData->type & WOLFSSH_USERAUTH_PASSWORD) {
|
||||
printf("password authentication");
|
||||
printf(" - password");
|
||||
}
|
||||
if (authData->type & WOLFSSH_USERAUTH_PUBLICKEY) {
|
||||
printf(" and public key authentication");
|
||||
printf(" - publickey");
|
||||
}
|
||||
printf("\n");
|
||||
printf("wolfSSH requesting to use type %d\n", authType);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue