torture: Rename the static auth kbdint function.
Этот коммит содержится в:
родитель
22b1e5bc7c
Коммит
a26194ece0
@ -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:
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user