aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_test_lib.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-03-31 16:48:44 +0200
committerNiclas Eklund <[email protected]>2011-05-19 14:38:23 +0200
commit2fb636273a06d31f0c24dcecf9302cd6561f02af (patch)
tree2c4dd03271879770758be40a48a5ba6b5bfc8206 /lib/ssh/test/ssh_test_lib.erl
parent61c134fa961a0aaa86be17d921dbe6727d0a7c1c (diff)
downloadotp-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.erl4
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