mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
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>
This commit is contained in:
committed by
Andreas Schneider
parent
78f764b7c9
commit
b1f3cfec34
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user