Clean up some awkward debug logging with respect to userauth.

pull/355/head
John Safranek 2021-06-24 16:04:46 -07:00 committed by Jacob Barthelmeh
parent 5555aa05f2
commit 21f54b0599
2 changed files with 6 additions and 8 deletions

View File

@ -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

View File

@ -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