diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-08-15 12:27:31 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-08-15 12:32:54 +0200 |
commit | c6210f5aef6ded994f33744116a05d2859aaa407 (patch) | |
tree | 7c8a0daccf85116a86b65444849404abc289a981 | |
parent | c673543e54cde6cf597ab960aa6da9f265c5d96b (diff) | |
download | libssh-c6210f5aef6ded994f33744116a05d2859aaa407.tar.gz libssh-c6210f5aef6ded994f33744116a05d2859aaa407.tar.xz libssh-c6210f5aef6ded994f33744116a05d2859aaa407.zip |
torture: Add public testkey passphrase function.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
-rw-r--r-- | tests/torture.c | 5 | ||||
-rw-r--r-- | tests/torture.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c index 09ab9e27..0b8eb3da 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -534,6 +534,11 @@ const char *torture_get_testkey_pub(enum ssh_keytypes_e type, int ecda_bits) return torture_get_testkey_internal(type, ecda_bits, 0, 1); } +const char *torture_get_testkey_passphrase(void) +{ + return TORTURE_TESTKEY_PASSWORD; +} + int torture_libssh_verbosity(void){ return verbosity; } diff --git a/tests/torture.h b/tests/torture.h index af6f72a7..ffcea8bb 100644 --- a/tests/torture.h +++ b/tests/torture.h @@ -72,6 +72,7 @@ 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); +const char *torture_get_testkey_passphrase(void); void torture_write_file(const char *filename, const char *data); |