{
struct connectdata *conn = ctx;
word32 plen = (word32) strlen(conn->passwd);
- fprintf(stderr, "wolfssh callback: %s type %s\n", __func__,
- authtype == WOLFSSH_USERAUTH_PASSWORD ? "PASSWORD" :
- "PUBLICCKEY");
+ DEBUGF(infof(conn->data, "wolfssh callback: type %s\n",
+ authtype == WOLFSSH_USERAUTH_PASSWORD ? "PASSWORD" :
+ "PUBLICCKEY"));
authdata->sf.password.password = (byte *)conn->user;
authdata->sf.password.passwordSz = plen;
/* if there's no error, it isn't done and it didn't EWOULDBLOCK, then
try again */
if(*done) {
- fprintf(stderr, "%s says DONE\n", __func__);
+ DEBUGF(infof(conn->data, "wssh_statemach_act says DONE\n"));
}
} while(!result && !*done && !block);