diff options
author | Ben Toews <mastahyeti@gmail.com> | 2019-03-12 10:25:49 -0600 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-04-17 10:21:42 +0200 |
commit | b1f3cfec34c6a4acf779dac926535217d7312fba (patch) | |
tree | 30a095cf4be1dae2dc392599a2b6afaf9d0181e9 /src/known_hosts.c | |
parent | 78f764b7c983e030f07ad162fa18a3c69aa4a973 (diff) | |
download | libssh-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 'src/known_hosts.c')
-rw-r--r-- | src/known_hosts.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/known_hosts.c b/src/known_hosts.c index cf883c42..093188ec 100644 --- a/src/known_hosts.c +++ b/src/known_hosts.c @@ -373,13 +373,7 @@ int ssh_is_server_known(ssh_session session) { } if (match) { ssh_key pubkey = ssh_dh_get_current_server_publickey(session); - const char *pubkey_type = NULL; - - if (ssh_key_type(pubkey) == SSH_KEYTYPE_ECDSA) { - pubkey_type = ssh_pki_key_ecdsa_name(pubkey); - } else { - pubkey_type = ssh_key_type_to_char(ssh_key_type(pubkey)); - } + const char *pubkey_type = ssh_key_type_to_char(ssh_key_type(pubkey)); /* We got a match. Now check the key type */ if (strcmp(pubkey_type, type) != 0) { |