mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
torture: Fix keyboard interactive authentication.
This commit is contained in:
@@ -201,8 +201,7 @@ ssh_session torture_ssh_session(const char *host,
|
|||||||
if (password != NULL) {
|
if (password != NULL) {
|
||||||
if (method & SSH_AUTH_METHOD_INTERACTIVE) {
|
if (method & SSH_AUTH_METHOD_INTERACTIVE) {
|
||||||
rc = _torture_auth_kbdint(session, password);
|
rc = _torture_auth_kbdint(session, password);
|
||||||
}
|
} else if (method & SSH_AUTH_METHOD_PASSWORD) {
|
||||||
if (method & SSH_AUTH_METHOD_PASSWORD) {
|
|
||||||
rc = ssh_userauth_password(session, NULL, password);
|
rc = ssh_userauth_password(session, NULL, password);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user