summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-09-10 07:07:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-10-01 14:48:20 +0200
commit8f2b26a83756ea2dd0ffd28c524322e4a5be67eb (patch)
treec0c02f3032b54960d09ce9f0b3ce7080d80a787e /src
parent42c07f379d131eabf30bc9d3acb71020525474ea (diff)
session: Try the ecdsa default key first.
Diffstat (limited to 'src')
-rw-r--r--src/session.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 2d6d09e3..fe11b416 100644
--- a/src/session.c
+++ b/src/session.c
@@ -115,6 +115,17 @@ ssh_session ssh_new(void) {
goto err;
}
+#ifdef HAVE_ECC
+ id = strdup("%d/id_ecdsa");
+ if (id == NULL) {
+ goto err;
+ }
+ rc = ssh_list_append(session->opts.identity, id);
+ if (rc == SSH_ERROR) {
+ goto err;
+ }
+#endif
+
id = strdup("%d/id_rsa");
if (id == NULL) {
goto err;