diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-06-28 17:52:58 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-29 14:41:14 +0200 |
commit | 206f3ff895d3d822ac4f23426136537129f9f062 (patch) | |
tree | 59728e18437ec9308d14a50082ef831b5b158612 /tests/unittests/torture_packet.c | |
parent | 81b4320318966e83678641a06717c301b071971b (diff) | |
download | libssh-206f3ff895d3d822ac4f23426136537129f9f062.tar.gz libssh-206f3ff895d3d822ac4f23426136537129f9f062.tar.xz libssh-206f3ff895d3d822ac4f23426136537129f9f062.zip |
Rest in Peace SSHv1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests/unittests/torture_packet.c')
-rw-r--r-- | tests/unittests/torture_packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unittests/torture_packet.c b/tests/unittests/torture_packet.c index d7102c53..01edb18b 100644 --- a/tests/unittests/torture_packet.c +++ b/tests/unittests/torture_packet.c @@ -69,7 +69,6 @@ static void torture_packet(const char *cipher, rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sockets); assert_int_equal(rc, 0); - session->version = 2; crypto->kex_methods[SSH_KEX] = strdup("curve25519-sha256@libssh.org"); crypto->kex_methods[SSH_HOSTKEYS] = strdup("ssh-rsa"); crypto->kex_methods[SSH_CRYPT_C_S] = strdup(cipher); @@ -80,7 +79,7 @@ static void torture_packet(const char *cipher, crypto->kex_methods[SSH_COMP_S_C] = strdup("none"); crypto->kex_methods[SSH_LANG_C_S] = strdup("none"); crypto->kex_methods[SSH_LANG_S_C] = strdup("none"); - rc = crypt_set_algorithms(session, 0); + rc = crypt_set_algorithms_client(session); assert_int_equal(rc, SSH_OK); session->current_crypto = session->next_crypto; session->next_crypto = crypto_new(); |