~vcs-imports/libssh/trunk

« back to all changes in this revision

Viewing changes to tests/torture.h

  • 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:
125
125
 
126
126
void torture_setup_socket_dir(void **state);
127
127
void torture_setup_sshd_server(void **state, bool pam);
128
 
void torture_setup_tokens(const char *temp_dir, const char *filename, const char object_name[]);
 
128
void torture_setup_tokens(const char *temp_dir,
 
129
                          const char *filename,
 
130
                          const char object_name[],
 
131
                          const char *load_public);
129
132
 
130
133
void torture_teardown_socket_dir(void **state);
131
134
void torture_teardown_sshd_server(void **state);