mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
example: Clear the password.
This commit is contained in:
@ -86,7 +86,9 @@ int authenticate_kbdint(ssh_session session, const char *password) {
|
|||||||
}
|
}
|
||||||
answer = buffer;
|
answer = buffer;
|
||||||
}
|
}
|
||||||
if (ssh_userauth_kbdint_setanswer(session, i, answer) < 0) {
|
err = ssh_userauth_kbdint_setanswer(session, i, answer);
|
||||||
|
memset(buffer, 0, sizeof(buffer));
|
||||||
|
if (err < 0) {
|
||||||
return SSH_AUTH_ERROR;
|
return SSH_AUTH_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -152,6 +154,7 @@ int authenticate_console(ssh_session session){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
memset(password, 0, sizeof(password));
|
||||||
}
|
}
|
||||||
|
|
||||||
banner = ssh_get_issue_banner(session);
|
banner = ssh_get_issue_banner(session);
|
||||||
|
Reference in New Issue
Block a user