aboutsummaryrefslogtreecommitdiff
path: root/src/ecdh_mbedcrypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ecdh_mbedcrypto.c')
-rw-r--r--src/ecdh_mbedcrypto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ecdh_mbedcrypto.c b/src/ecdh_mbedcrypto.c
index fa350028..3ff93ee8 100644
--- a/src/ecdh_mbedcrypto.c
+++ b/src/ecdh_mbedcrypto.c
@@ -106,6 +106,9 @@ int ssh_client_ecdh_init(ssh_session session)
session->next_crypto->ecdh_client_pubkey = client_pubkey;
client_pubkey = NULL;
+ /* 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);
out: