summaryrefslogtreecommitdiffstats
path: root/src/packet_cb.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-09-21 23:34:50 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2013-09-27 16:06:09 +0200
commit666db37e210c4d880cb1d9cfbfca9c11ed374ba7 (patch)
tree579a9cfddd85ab6d33e4c5f697e3925d8e2abc4d /src/packet_cb.c
parent391bd8835572831e02b88f6bdb0dcb8785d9bbdb (diff)
kex: implement curve25519-sha256@libssh.org
Diffstat (limited to 'src/packet_cb.c')
-rw-r--r--src/packet_cb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/packet_cb.c b/src/packet_cb.c
index 4a8beb54..f5d4f055 100644
--- a/src/packet_cb.c
+++ b/src/packet_cb.c
@@ -35,6 +35,7 @@
#include "libssh/session.h"
#include "libssh/socket.h"
#include "libssh/ssh2.h"
+#include "libssh/curve25519.h"
/**
* @internal
@@ -103,6 +104,11 @@ SSH_PACKET_CALLBACK(ssh_packet_dh_reply){
rc = ssh_client_ecdh_reply(session, packet);
break;
#endif
+#ifdef HAVE_CURVE25519
+ case SSH_KEX_CURVE25519_SHA256_LIBSSH_ORG:
+ rc = ssh_client_curve25519_reply(session, packet);
+ break;
+#endif
default:
ssh_set_error(session,SSH_FATAL,"Wrong kex type in ssh_packet_dh_reply");
goto error;