mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +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
@@ -40,8 +40,8 @@ static int setup(void **state) {
|
||||
assert_return_code(h->fd, errno);
|
||||
close(h->fd);
|
||||
|
||||
h->key_type = SSH_KEYTYPE_ECDSA;
|
||||
h->hostkey = torture_get_testkey(h->key_type, 0, 0);
|
||||
h->key_type = SSH_KEYTYPE_ECDSA_P256;
|
||||
h->hostkey = torture_get_testkey(h->key_type, 0);
|
||||
|
||||
torture_write_file(h->hostkey_path, h->hostkey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user