diff options
Diffstat (limited to 'src/packet_cb.c')
-rw-r--r-- | src/packet_cb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/packet_cb.c b/src/packet_cb.c index fc676257..2009d752 100644 --- a/src/packet_cb.c +++ b/src/packet_cb.c @@ -166,8 +166,9 @@ SSH_PACKET_CALLBACK(ssh_packet_newkeys){ * Set the cryptographic functions for the next crypto * (it is needed for ssh_generate_session_keys for key lengths) */ - if (crypt_set_algorithms(session, SSH_3DES) /* knows nothing about DES*/ ) { - goto error; + rc = crypt_set_algorithms_client(session); + if (rc < 0) { + goto error; } if (ssh_generate_session_keys(session) < 0) { |