Skip to content

Commit e25ab3c

Browse files
cryptomilknviennot
authored andcommitted
ssh-client: Add missing ecdsa keytypes of libssh 0.9
1 parent 299c7c6 commit e25ab3c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tmate-ssh-client.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
218218
{
219219
char *identity;
220220
ssh_key pubkey;
221-
int key_type;
221+
enum ssh_keytypes_e key_type;
222222
unsigned char *hash;
223223
ssize_t hash_len;
224224
char *hash_str;
@@ -304,6 +304,11 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
304304
"tmate-server-rsa-fingerprint");
305305
break;
306306
case SSH_KEYTYPE_ECDSA:
307+
#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 9, 0)
308+
case SSH_KEYTYPE_ECDSA_P256:
309+
case SSH_KEYTYPE_ECDSA_P384:
310+
case SSH_KEYTYPE_ECDSA_P521:
311+
#endif
307312
server_hash_str = options_get_string(global_options,
308313
"tmate-server-ecdsa-fingerprint");
309314
break;

0 commit comments

Comments
 (0)