mirror of
https://github.com/tmate-io/tmate.git
synced 2025-06-15 06:06:47 +02:00
ssh-client: Add missing ecdsa keytypes of libssh 0.9
This commit is contained in:
parent
299c7c670c
commit
e25ab3cc8b
@ -218,7 +218,7 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
|
|||||||
{
|
{
|
||||||
char *identity;
|
char *identity;
|
||||||
ssh_key pubkey;
|
ssh_key pubkey;
|
||||||
int key_type;
|
enum ssh_keytypes_e key_type;
|
||||||
unsigned char *hash;
|
unsigned char *hash;
|
||||||
ssize_t hash_len;
|
ssize_t hash_len;
|
||||||
char *hash_str;
|
char *hash_str;
|
||||||
@ -304,6 +304,11 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
|
|||||||
"tmate-server-rsa-fingerprint");
|
"tmate-server-rsa-fingerprint");
|
||||||
break;
|
break;
|
||||||
case SSH_KEYTYPE_ECDSA:
|
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,
|
server_hash_str = options_get_string(global_options,
|
||||||
"tmate-server-ecdsa-fingerprint");
|
"tmate-server-ecdsa-fingerprint");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user