mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +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
@@ -140,17 +140,17 @@ static int setup_config_files(void **state)
|
||||
/* For ed25519 the test keys are not available in legacy PEM format. Using
|
||||
* the new OpenSSH format for all algorithms */
|
||||
torture_write_file(LIBSSH_RSA_TESTKEY,
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_RSA, 0, 0));
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_RSA, 0));
|
||||
|
||||
torture_write_file(LIBSSH_ED25519_TESTKEY,
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_ED25519, 0, 0));
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_ED25519, 0));
|
||||
#ifdef HAVE_ECC
|
||||
torture_write_file(LIBSSH_ECDSA_521_TESTKEY,
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_ECDSA, 521, 0));
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_ECDSA_P521, 0));
|
||||
#endif
|
||||
#ifdef HAVE_DSA
|
||||
torture_write_file(LIBSSH_DSA_TESTKEY,
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_DSS, 0, 0));
|
||||
torture_get_openssh_testkey(SSH_KEYTYPE_DSS, 0));
|
||||
#endif
|
||||
|
||||
torture_write_file(LIBSSH_TEST_BIND_CONFIG_LISTENADDRESS,
|
||||
|
||||
Reference in New Issue
Block a user