1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-01 11:26:52 +03:00

tests/torture.c: update the definition of torture_setup_tokens() to take load_public as an option that

determines if public keys must be loaded in pkcs #11 tokens or not.
tests:           Adds the load_public parameter in all files where torture_setup_tokens() was used.

Signed-off-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Sahana Prasad
2020-05-14 16:25:19 +02:00
parent d3f7b64579
commit 7eb6c7ee6c
5 changed files with 16 additions and 11 deletions

View File

@ -61,7 +61,7 @@ static int setup_tokens(void **state, const char *type, const char *obj_name)
snprintf(priv_filename, sizeof(priv_filename), "%s%s", test_state->keys_dir, type);
torture_setup_tokens(cwd, priv_filename, obj_name);
torture_setup_tokens(cwd, priv_filename, obj_name, "1");
return 0;
}