aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_test_lib.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-05-12 18:34:48 +0200
committerHans Nilsson <[email protected]>2017-05-17 15:18:18 +0200
commit235472ad819537bb357e254f48bae506a1e63213 (patch)
treea8a126ab58633d4333259c3fb97196f9c9be4423 /lib/ssh/test/ssh_test_lib.erl
parentdf8ec436495f62cff4f433aaf9129505ee41e189 (diff)
downloadotp-235472ad819537bb357e254f48bae506a1e63213.tar.gz
otp-235472ad819537bb357e254f48bae506a1e63213.tar.bz2
otp-235472ad819537bb357e254f48bae506a1e63213.zip
ssh: make ssh_algorithms_SUITE test public user and host keys
Conflicts: lib/ssh/src/ssh_transport.erl
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.erl')
-rw-r--r--lib/ssh/test/ssh_test_lib.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl
index 36ae2525da..7b273fecef 100644
--- a/lib/ssh/test/ssh_test_lib.erl
+++ b/lib/ssh/test/ssh_test_lib.erl
@@ -500,8 +500,12 @@ setup_ecdsa_auth_keys(_Size, Dir, UserDir) ->
setup_auth_keys(Keys, Dir) ->
AuthKeys = public_key:ssh_encode(Keys, auth_keys),
AuthKeysFile = filename:join(Dir, "authorized_keys"),
- file:write_file(AuthKeysFile, AuthKeys).
+ ok = file:write_file(AuthKeysFile, AuthKeys),
+ AuthKeys.
+write_auth_keys(Keys, Dir) ->
+ AuthKeysFile = filename:join(Dir, "authorized_keys"),
+ file:write_file(AuthKeysFile, Keys).
del_dirs(Dir) ->
case file:list_dir(Dir) of