From 206f3ff895d3d822ac4f23426136537129f9f062 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 28 Jun 2018 17:52:58 +0200 Subject: Rest in Peace SSHv1 Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/bind.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/bind.c') diff --git a/src/bind.c b/src/bind.c index 7a3e8c93..47837259 100644 --- a/src/bind.c +++ b/src/bind.c @@ -214,8 +214,7 @@ static int ssh_bind_import_keys(ssh_bind sshbind) { return SSH_ERROR; } - if (ssh_key_type(sshbind->rsa) != SSH_KEYTYPE_RSA && - ssh_key_type(sshbind->rsa) != SSH_KEYTYPE_RSA1) { + if (ssh_key_type(sshbind->rsa) != SSH_KEYTYPE_RSA) { ssh_set_error(sshbind, SSH_FATAL, "The RSA host key has the wrong type"); ssh_key_free(sshbind->rsa); @@ -394,7 +393,6 @@ int ssh_bind_accept_fd(ssh_bind sshbind, ssh_session session, socket_t fd){ } session->server = 1; - session->version = 2; /* copy options */ for (i = 0; i < 10; i++) { -- cgit v1.2.3