tests: Use new auth API in the torture_session test.

This commit is contained in:
Andreas Schneider
2013-12-15 20:29:30 +01:00
parent f8debe9a19
commit 9829aa2236

View File

@@ -68,9 +68,10 @@ static void torture_channel_read_error(void **state) {
if (rc == SSH_ERROR) {
assert_true(ssh_get_error_code(session) == SSH_REQUEST_DENIED);
}
assert_true(ssh_auth_list(session) & SSH_AUTH_METHOD_PUBLICKEY);
rc = ssh_userauth_list(session, NULL);
assert_true(rc & SSH_AUTH_METHOD_PUBLICKEY);
rc = ssh_userauth_autopubkey(session, NULL);
rc = ssh_userauth_publickey_auto(session, NULL, NULL);
assert_true(rc == SSH_AUTH_SUCCESS);
channel = ssh_channel_new(session);