~vcs-imports/libssh/trunk

« back to all changes in this revision

Viewing changes to tests/unittests/torture_pki_rsa_uri.c

  • Committer: Sahana Prasad
  • Date: 2020-05-20 10:49:29 UTC
  • Revision ID: git-v1:7eb6c7ee6c1633d6fe73fd094ba3aa80d9f1cb3d
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>

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    torture_write_file(keys_path_pub,
84
84
                       torture_get_testkey_pub_pem(SSH_KEYTYPE_RSA));
85
85
 
86
 
    torture_setup_tokens(cwd, keys_path, obj_tempname);
 
86
    torture_setup_tokens(cwd, keys_path, obj_tempname, "1");
87
87
 
88
88
    snprintf(conf_path, sizeof(conf_path), "%s/softhsm.conf", cwd);
89
89