aboutsummaryrefslogtreecommitdiff
path: root/src/packet_cb.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-28 17:52:58 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-29 14:41:14 +0200
commit206f3ff895d3d822ac4f23426136537129f9f062 (patch)
tree59728e18437ec9308d14a50082ef831b5b158612 /src/packet_cb.c
parent81b4320318966e83678641a06717c301b071971b (diff)
downloadlibssh-206f3ff895d3d822ac4f23426136537129f9f062.tar.gz
libssh-206f3ff895d3d822ac4f23426136537129f9f062.tar.xz
libssh-206f3ff895d3d822ac4f23426136537129f9f062.zip
Rest in Peace SSHv1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/packet_cb.c')
-rw-r--r--src/packet_cb.c5
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) {