mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-05 20:55:46 +03:00
torture: Rename the static auth kbdint function.
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
static int verbosity = 0;
|
static int verbosity = 0;
|
||||||
|
|
||||||
static int torture_auth_kbdint(ssh_session session,
|
static int _torture_auth_kbdint(ssh_session session,
|
||||||
const char *password) {
|
const char *password) {
|
||||||
const char *prompt;
|
const char *prompt;
|
||||||
char echo;
|
char echo;
|
||||||
@@ -177,16 +177,16 @@ ssh_session torture_ssh_session(const char *host,
|
|||||||
/* We are in testing mode, so consinder the hostkey as verified ;) */
|
/* We are in testing mode, so consinder the hostkey as verified ;) */
|
||||||
|
|
||||||
if (password != NULL) {
|
if (password != NULL) {
|
||||||
int err = torture_auth_kbdint(session, password);
|
rc = _torture_auth_kbdint(session, password);
|
||||||
if (err == SSH_AUTH_ERROR) {
|
|
||||||
goto failed;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
int err = ssh_userauth_autopubkey(session, NULL);
|
rc = ssh_userauth_autopubkey(session, NULL);
|
||||||
if (err == SSH_AUTH_ERROR) {
|
if (rc == SSH_AUTH_ERROR) {
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (rc != SSH_AUTH_SUCCESS) {
|
||||||
|
goto failed;
|
||||||
|
}
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
failed:
|
failed:
|
||||||
|
Reference in New Issue
Block a user