aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_test_lib.erl
diff options
context:
space:
mode:
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