From a2a6dddacf357f92edcbaaa01aa5d87e69397db7 Mon Sep 17 00:00:00 2001 From: Tilo Eckert Date: Mon, 25 Jun 2018 13:09:57 +0200 Subject: [PATCH] tests: adjust test for kex string "curve25519" Signed-off-by: Tilo Eckert Reviewed-by: Andreas Schneider --- tests/unittests/torture_options.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unittests/torture_options.c b/tests/unittests/torture_options.c index 6fc0df79..d0d11d4d 100644 --- a/tests/unittests/torture_options.c +++ b/tests/unittests/torture_options.c @@ -68,18 +68,18 @@ static void torture_options_set_key_exchange(void **state) /* Test known kexes */ rc = ssh_options_set(session, SSH_OPTIONS_KEY_EXCHANGE, - "curve25519-sha256@libssh.org,ecdh-sha2-nistp256,diffie-hellman-group14-sha1"); + "curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,diffie-hellman-group14-sha1"); assert_true(rc == 0); assert_string_equal(session->opts.wanted_methods[SSH_KEX], - "curve25519-sha256@libssh.org,ecdh-sha2-nistp256,diffie-hellman-group14-sha1"); + "curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,diffie-hellman-group14-sha1"); /* Test one unknown kex */ rc = ssh_options_set(session, SSH_OPTIONS_KEY_EXCHANGE, - "curve25519-sha256@libssh.org,unknown-crap@example.com,diffie-hellman-group14-sha1"); + "curve25519-sha256,curve25519-sha256@libssh.org,unknown-crap@example.com,diffie-hellman-group14-sha1"); assert_true(rc == 0); assert_string_equal(session->opts.wanted_methods[SSH_KEX], - "curve25519-sha256@libssh.org,diffie-hellman-group14-sha1"); + "curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha1"); /* Test all unknown kexes */ rc = ssh_options_set(session,