aboutsummaryrefslogtreecommitdiff
path: root/src/ecdh_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ecdh_crypto.c')
-rw-r--r--src/ecdh_crypto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ecdh_crypto.c b/src/ecdh_crypto.c
index 24f21c03..10cc6a5f 100644
--- a/src/ecdh_crypto.c
+++ b/src/ecdh_crypto.c
@@ -108,6 +108,10 @@ int ssh_client_ecdh_init(ssh_session session){
session->next_crypto->ecdh_privkey = key;
session->next_crypto->ecdh_client_pubkey = client_pubkey;
+ /* register the packet callbacks */
+ ssh_packet_set_callbacks(session, &ssh_ecdh_client_callbacks);
+ session->dh_handshake_state = DH_STATE_INIT_SENT;
+
rc = ssh_packet_send(session);
return rc;