aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorBen Toews <mastahyeti@gmail.com>2019-03-12 10:25:49 -0600
committerAndreas Schneider <asn@cryptomilk.org>2019-04-17 10:21:42 +0200
commitb1f3cfec34c6a4acf779dac926535217d7312fba (patch)
tree30a095cf4be1dae2dc392599a2b6afaf9d0181e9 /tests/client
parent78f764b7c983e030f07ad162fa18a3c69aa4a973 (diff)
downloadlibssh-b1f3cfec34c6a4acf779dac926535217d7312fba.tar.gz
libssh-b1f3cfec34c6a4acf779dac926535217d7312fba.tar.xz
libssh-b1f3cfec34c6a4acf779dac926535217d7312fba.zip
libssh: deprecate SSH_KEYTYPE_ECDSA
This type is imprecise. We often need the ecdsa_nid in addition to the key type in order to do anything. We replace this singluar ECDSA type with one type per curve. Signed-off-by: Ben Toews <mastahyeti@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/torture_knownhosts_verify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/client/torture_knownhosts_verify.c b/tests/client/torture_knownhosts_verify.c
index 2a2b32d0..c9f4f633 100644
--- a/tests/client/torture_knownhosts_verify.c
+++ b/tests/client/torture_knownhosts_verify.c
@@ -161,15 +161,15 @@ static void torture_knownhosts_precheck(void **state)
assert_non_null(file);
fprintf(file,
"127.0.0.10 %s\n",
- torture_get_testkey_pub(SSH_KEYTYPE_RSA, 0));
+ torture_get_testkey_pub(SSH_KEYTYPE_RSA));
fprintf(file,
"127.0.0.10 %s\n",
- torture_get_testkey_pub(SSH_KEYTYPE_ED25519, 0));
+ torture_get_testkey_pub(SSH_KEYTYPE_ED25519));
fprintf(file,
"127.0.0.10 %s\n",
- torture_get_testkey_pub(SSH_KEYTYPE_ECDSA, 521));
+ torture_get_testkey_pub(SSH_KEYTYPE_ECDSA_P521));
fclose(file);
@@ -229,7 +229,7 @@ static void torture_knownhosts_other(void **state)
assert_non_null(file);
fprintf(file,
"127.0.0.10 %s\n",
- torture_get_testkey_pub(SSH_KEYTYPE_RSA, 0));
+ torture_get_testkey_pub(SSH_KEYTYPE_RSA));
fclose(file);
rc = ssh_connect(session);