mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-10 06:23:01 +03:00
tests: Use new auth API in the torture_session test.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user