ssh-client: Add support for ed25519 keys

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider 2019-03-20 19:06:18 +01:00 committed by Nicolas Viennot
parent 2ffcbbd185
commit b645ce15cb
2 changed files with 10 additions and 0 deletions

View File

@ -934,6 +934,12 @@ const struct options_table_entry options_table[] = {
.default_str = "SHA256:8GmKHYHEJ6n0TEdciHeEGkKOigQfCFuBULdt6vZIhDc"
},
{ .name = "tmate-server-ed25519-fingerprint",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_SERVER,
.default_str = ""
},
{ .name = "tmate-display-time",
.type = OPTIONS_TABLE_NUMBER,
.scope = OPTIONS_TABLE_SESSION,

View File

@ -309,6 +309,10 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
server_hash_str = options_get_string(global_options,
"tmate-server-ecdsa-fingerprint");
break;
case SSH_KEYTYPE_ED25519:
server_hash_str = options_get_string(global_options,
"tmate-server-ed25519-fingerprint");
break;
default:
server_hash_str = "";
}