diff options
author | Hans Nilsson <[email protected]> | 2017-05-12 18:34:48 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-05-17 15:18:18 +0200 |
commit | 235472ad819537bb357e254f48bae506a1e63213 (patch) | |
tree | a8a126ab58633d4333259c3fb97196f9c9be4423 /lib/ssh/test/ssh_test_lib.erl | |
parent | df8ec436495f62cff4f433aaf9129505ee41e189 (diff) | |
download | otp-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.erl | 6 |
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 |