From 8360139506f8e5a7f58eb8c334d7f6f981eed901 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Sat, 16 Jan 2016 18:52:05 +0900 Subject: [PATCH] Add id_ed25519 to the default identity list Signed-off-by: Kohei Suzuki Reviewed-by: Andreas Schneider (cherry picked from commit c092101e019316975108e4afbe66802520ef510a) --- src/session.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/session.c b/src/session.c index 19c02672..c29af1ef 100644 --- a/src/session.c +++ b/src/session.c @@ -115,6 +115,15 @@ ssh_session ssh_new(void) { goto err; } + id = strdup("%d/id_ed25519"); + if (id == NULL) { + goto err; + } + rc = ssh_list_append(session->opts.identity, id); + if (rc == SSH_ERROR) { + goto err; + } + #ifdef HAVE_ECC id = strdup("%d/id_ecdsa"); if (id == NULL) {