mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
torture: Add public testkey passphrase function.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user