aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-09-03 09:32:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-02-02 14:45:52 +0100
commitc02b260e7ef8548d61d6491d76d0150da66c19c7 (patch)
tree21a8ac17e9a2953210135ba38eef37da0d5f151d /include
parent01a6004171c6a899192c87dfe5a8ff27c30b1eaf (diff)
downloadlibssh-c02b260e7ef8548d61d6491d76d0150da66c19c7.tar.gz
libssh-c02b260e7ef8548d61d6491d76d0150da66c19c7.tar.xz
libssh-c02b260e7ef8548d61d6491d76d0150da66c19c7.zip
server: Add support for ed25519 keys in the server.
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/bind.h2
-rw-r--r--include/libssh/session.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/bind.h b/include/libssh/bind.h
index ced1c494..edbc7b77 100644
--- a/include/libssh/bind.h
+++ b/include/libssh/bind.h
@@ -36,9 +36,11 @@ struct ssh_bind_struct {
char *ecdsakey;
char *dsakey;
char *rsakey;
+ char *ed25519key;
ssh_key ecdsa;
ssh_key dsa;
ssh_key rsa;
+ ssh_key ed25519;
char *bindaddr;
socket_t bindfd;
unsigned int bindport;
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 29bdd60b..60d78578 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -156,7 +156,7 @@ struct ssh_session_struct {
ssh_key rsa_key;
ssh_key dsa_key;
ssh_key ecdsa_key;
-
+ ssh_key ed25519_key;
/* The type of host key wanted by client */
enum ssh_keytypes_e hostkey;
} srv;