aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-08-15 12:23:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-08-15 12:32:47 +0200
commitedca9d6e9684552e3f65d42ddaabb2bf72d5e140 (patch)
treef189804874f7dab9be892ece020ec9dedc179834 /tests/torture.h
parent83aed7610ca37c8354bfb27eeb3fdfe3900e2766 (diff)
downloadlibssh-edca9d6e9684552e3f65d42ddaabb2bf72d5e140.tar.gz
libssh-edca9d6e9684552e3f65d42ddaabb2bf72d5e140.tar.xz
libssh-edca9d6e9684552e3f65d42ddaabb2bf72d5e140.zip
torture: Add public testkey functions.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
Diffstat (limited to 'tests/torture.h')
-rw-r--r--tests/torture.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h
index 61521f31..af6f72a7 100644
--- a/tests/torture.h
+++ b/tests/torture.h
@@ -68,6 +68,11 @@ ssh_session torture_ssh_session(const char *host,
struct torture_sftp *torture_sftp_session(ssh_session session);
void torture_sftp_close(struct torture_sftp *t);
+const char *torture_get_testkey(enum ssh_keytypes_e type,
+ int ecdsa_bits,
+ int with_passphrase);
+const char *torture_get_testkey_pub(enum ssh_keytypes_e type, int ecdsa_bits);
+
void torture_write_file(const char *filename, const char *data);
/*