aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Suzuki <eagletmt@gmail.com>2016-01-16 18:52:05 +0900
committerAndreas Schneider <asn@cryptomilk.org>2016-05-02 15:34:01 +0200
commitc092101e019316975108e4afbe66802520ef510a (patch)
tree39a878c23ee24f0ee5eb751bc662236ab0decbd9
parentd7df4429ebb59f5cae20625084fd464794eac817 (diff)
downloadlibssh-c092101e019316975108e4afbe66802520ef510a.tar.gz
libssh-c092101e019316975108e4afbe66802520ef510a.tar.xz
libssh-c092101e019316975108e4afbe66802520ef510a.zip
Add id_ed25519 to the default identity list
Signed-off-by: Kohei Suzuki <eagletmt@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/session.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index a9db298e..6885866f 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) {