aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.h
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-11-26 13:48:37 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-09 10:14:56 +0100
commitb3ae5e06ee625ab69cb8541548a7fda1ba807b07 (patch)
treef07693363a1c77756ce1c9fc7fcae874eb58ef36 /tests/torture.h
parentd4e5644e217f2a21376adb1ccf6457a1a7e7b44e (diff)
downloadlibssh-b3ae5e06ee625ab69cb8541548a7fda1ba807b07.tar.gz
libssh-b3ae5e06ee625ab69cb8541548a7fda1ba807b07.tar.xz
libssh-b3ae5e06ee625ab69cb8541548a7fda1ba807b07.zip
tests: Allow to generate unencrypted PCAP files from testsuite
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Daiki Ueno <dueno@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/torture.h')
-rw-r--r--tests/torture.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/torture.h b/tests/torture.h
index bdff4deb..5ff5e954 100644
--- a/tests/torture.h
+++ b/tests/torture.h
@@ -75,6 +75,9 @@ struct torture_state {
ssh_session session;
struct torture_sftp *tsftp;
} ssh;
+#ifdef WITH_PCAP
+ ssh_pcap_file plain_pcap;
+#endif
};
#ifndef ZERO_STRUCT
@@ -93,7 +96,8 @@ int torture_terminate_process(const char *pidfile);
*/
int torture_libssh_verbosity(void);
-ssh_session torture_ssh_session(const char *host,
+ssh_session torture_ssh_session(struct torture_state *s,
+ const char *host,
const unsigned int *port,
const char *user,
const char *password);