We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 299c7c6 commit e25ab3cCopy full SHA for e25ab3c
tmate-ssh-client.c
@@ -218,7 +218,7 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
218
{
219
char *identity;
220
ssh_key pubkey;
221
- int key_type;
+ enum ssh_keytypes_e key_type;
222
unsigned char *hash;
223
ssize_t hash_len;
224
char *hash_str;
@@ -304,6 +304,11 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
304
"tmate-server-rsa-fingerprint");
305
break;
306
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
312
server_hash_str = options_get_string(global_options,
313
"tmate-server-ecdsa-fingerprint");
314
0 commit comments