diff options
author | Niclas Eklund <[email protected]> | 2011-03-31 16:48:44 +0200 |
---|---|---|
committer | Niclas Eklund <[email protected]> | 2011-05-19 14:38:23 +0200 |
commit | 2fb636273a06d31f0c24dcecf9302cd6561f02af (patch) | |
tree | 2c4dd03271879770758be40a48a5ba6b5bfc8206 /lib/ssh/test/ssh_test_lib.erl | |
parent | 61c134fa961a0aaa86be17d921dbe6727d0a7c1c (diff) | |
download | otp-2fb636273a06d31f0c24dcecf9302cd6561f02af.tar.gz otp-2fb636273a06d31f0c24dcecf9302cd6561f02af.tar.bz2 otp-2fb636273a06d31f0c24dcecf9302cd6561f02af.zip |
Some minor updates regarding how test data is generated.
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.erl')
-rw-r--r-- | lib/ssh/test/ssh_test_lib.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl index 8c9fb9038d..f2a6351f96 100644 --- a/lib/ssh/test/ssh_test_lib.erl +++ b/lib/ssh/test/ssh_test_lib.erl @@ -283,6 +283,10 @@ make_dsa_public_key_file(P, Q, G, Y, Config) -> FileName = filename:join([?config(data_dir, Config), "ssh_host_dsa_key.pub"]), file:write_file(FileName, <<"ssh-dss ", B64/binary>>). +make_dsa_private_key_file(LSize, NSize, Config) -> + {Key, EncodedKey} = gen_dsa(LSize, NSize), + FileName = filename:join([?config(data_dir, Config), "ssh_host_dsa_key"]), + file:write_file(FileName, EncodedKey). %%-------------------------------------------------------------------- %% Create and return a der encoded certificate |