aboutsummaryrefslogtreecommitdiff
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 15:32:44 +0200
commit4cb6afcbd43ab503d4c3d3054b96a1492605ea8d (patch)
treedd142bcab88629a984936e708cca3d5ac9a1d1c6 /src/packet_cb.c
parent4eae4d592cb9195cac49832bf3bd4052c418b948 (diff)
downloadlibssh-4cb6afcbd43ab503d4c3d3054b96a1492605ea8d.tar.gz
libssh-4cb6afcbd43ab503d4c3d3054b96a1492605ea8d.tar.xz
libssh-4cb6afcbd43ab503d4c3d3054b96a1492605ea8d.zip
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;