mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Use opts.identites_non_exp not opts.identities
The configuration of identities are first saved to `opts.identities_non_exp`, then moved to `opts.identities` after calling ssh_options_apply and expanding the identity strings. These tests are testing against the proper configuration Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
1ff893c914
commit
87d694d5ad
@ -715,7 +715,7 @@ static void torture_auth_agent_identities_only(void **state)
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
|
||||
/* Remove the default identities */
|
||||
while ((id = ssh_list_pop_head(char *, session->opts.identity)) != NULL) {
|
||||
while ((id = ssh_list_pop_head(char *, session->opts.identity_non_exp)) != NULL) {
|
||||
SAFE_FREE(id);
|
||||
}
|
||||
|
||||
@ -772,7 +772,7 @@ static void torture_auth_agent_identities_only_protected(void **state)
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
|
||||
/* Remove the default identities */
|
||||
while ((id = ssh_list_pop_head(char *, session->opts.identity)) != NULL) {
|
||||
while ((id = ssh_list_pop_head(char *, session->opts.identity_non_exp)) != NULL) {
|
||||
SAFE_FREE(id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user