aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-11-09 15:35:22 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-11-09 15:35:22 +0100
commit7a65f7f0280662455121e2484a776e392f2cee34 (patch)
tree22df4b68325b96d73e3e50b9c9f662f7dead19f3
parentf525fdb2e189901641ac8d8181bca2b331411bc0 (diff)
downloadlibssh-7a65f7f0280662455121e2484a776e392f2cee34.tar.gz
libssh-7a65f7f0280662455121e2484a776e392f2cee34.tar.xz
libssh-7a65f7f0280662455121e2484a776e392f2cee34.zip
test: ssh_userauth_kbdint_setanswer() does not network interaction
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/client/torture_auth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c
index 754c66cc..8f317fc4 100644
--- a/tests/client/torture_auth.c
+++ b/tests/client/torture_auth.c
@@ -362,9 +362,7 @@ static void torture_auth_kbdint_nonblocking(void **state) {
} while (rc == SSH_AUTH_AGAIN);
assert_int_equal(rc, SSH_AUTH_INFO);
assert_int_equal(ssh_userauth_kbdint_getnprompts(session), 1);
- do {
- rc = ssh_userauth_kbdint_setanswer(session, 0, TORTURE_SSH_USER_BOB_PASSWORD);
- } while (rc == SSH_AUTH_AGAIN);
+ rc = ssh_userauth_kbdint_setanswer(session, 0, TORTURE_SSH_USER_BOB_PASSWORD);
assert_false(rc < 0);
do {