diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2019-07-30 14:48:37 +0200 |
---|---|---|
committer | Nicolas Viennot <nicolas@viennot.biz> | 2019-07-30 09:39:25 -0400 |
commit | e25ab3cc8bb4d42b137625b376d677707bc4fbe2 (patch) | |
tree | c8befa4d656ee111892dec9ee1e5ef466dcaba70 | |
parent | 299c7c670c3d56ad6eaf73618dcf0c3c5d6fa2ec (diff) |
ssh-client: Add missing ecdsa keytypes of libssh 0.9
-rw-r--r-- | tmate-ssh-client.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tmate-ssh-client.c b/tmate-ssh-client.c index 2a9afee0..943ebf49 100644 --- a/tmate-ssh-client.c +++ b/tmate-ssh-client.c @@ -218,7 +218,7 @@ static void on_ssh_client_event(struct tmate_ssh_client *client) { char *identity; ssh_key pubkey; - int key_type; + enum ssh_keytypes_e key_type; unsigned char *hash; ssize_t hash_len; char *hash_str; @@ -304,6 +304,11 @@ static void on_ssh_client_event(struct tmate_ssh_client *client) "tmate-server-rsa-fingerprint"); break; case SSH_KEYTYPE_ECDSA: +#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 9, 0) + case SSH_KEYTYPE_ECDSA_P256: + case SSH_KEYTYPE_ECDSA_P384: + case SSH_KEYTYPE_ECDSA_P521: +#endif server_hash_str = options_get_string(global_options, "tmate-server-ecdsa-fingerprint"); break; |