diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-02-07 13:30:23 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-02-07 13:30:23 +0100 |
commit | a26194ece01f0bfc4c3da7e005fbfe392848480d (patch) | |
tree | f37e0e8186c5a7885c28a6ef87e5fcf26bb140c0 /tests | |
parent | 22b1e5bc7c32e24b7b39435af2321ba281018dd6 (diff) | |
download | libssh-a26194ece01f0bfc4c3da7e005fbfe392848480d.tar.gz libssh-a26194ece01f0bfc4c3da7e005fbfe392848480d.tar.xz libssh-a26194ece01f0bfc4c3da7e005fbfe392848480d.zip |
torture: Rename the static auth kbdint function.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/torture.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/torture.c b/tests/torture.c index 1354752..afbd3dc 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -35,7 +35,7 @@ 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 *prompt; 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 ;) */ if (password != NULL) { - int err = torture_auth_kbdint(session, password); - if (err == SSH_AUTH_ERROR) { - goto failed; - } + rc = _torture_auth_kbdint(session, password); } else { - int err = ssh_userauth_autopubkey(session, NULL); - if (err == SSH_AUTH_ERROR) { + rc = ssh_userauth_autopubkey(session, NULL); + if (rc == SSH_AUTH_ERROR) { goto failed; } } + if (rc != SSH_AUTH_SUCCESS) { + goto failed; + } return session; failed: |